Vstupní událost HTML DOM
❮ Události DOM ❮ Objekty událostí
Objekt InputEvent
Události, které nastanou, když se změní obsah prvku formuláře, patří do objektu InputEvent.
Vlastnosti a 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 |
Dědičné vlastnosti a metody
InputEvent dědí všechny vlastnosti a metody z:
Typy událostí
Tyto typy událostí patří do objektu InputEvent:
Event | Description |
---|---|
oninput | The event occurs when an element gets user input |
❮ Události DOM ❮ Objekty událostí