HTML DOM InputEvent
❮ Wydarzenia DOM ❮ Obiekty zdarzeń
Obiekt InputEvent
Zdarzenia, które występują, gdy zmienia się zawartość elementu formularza, należą do obiektu InputEvent.
Właściwości i metody InputEvent
Property/Method | Description |
---|---|
data | Returns the inserted characters |
dataTransfer | Returns an object containing information about the inserted/deleted data |
getTargetRanges() | Returns an array containing target ranges that will be affected by the insertion/deletion |
inputType | Returns the type of the change (i.e "inserting" or "deleting") |
isComposing | Returns whether the state of the event is composing or not |
Dziedziczone właściwości i metody
InputEvent dziedziczy wszystkie właściwości i metody z:
Rodzaje wydarzeń
Te typy zdarzeń należą do obiektu InputEvent:
Event | Description |
---|---|
oninput | The event occurs when an element gets user input |
❮ Wydarzenia DOM ❮ Obiekty zdarzeń