HTML DOM InputEvent
The InputEvent Object
Events that occur when an form element's content changes, belongs to the InputEvent Object.
InputEvent Properties and Methods
| 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 |
Inherited Properties and Methods
The InputEvent inherits all the properties and methods from:
Event Types
These event types belongs to the InputEvent Object:
| Event | Description |
|---|---|
| oninput | The event occurs when an element gets user input |