HTML DOM InputEvent
❮ События ДОМ ❮ Объекты события
Объект InputEvent
События, возникающие при изменении содержимого элемента формы, относятся к объекту InputEvent.
Свойства и методы 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 |
Унаследованные свойства и методы
InputEvent наследует все свойства и методы от:
Типы событий
Эти типы событий относятся к объекту InputEvent:
Event | Description |
---|---|
oninput | The event occurs when an element gets user input |
❮ События ДОМ ❮ Объекты события