HTML DOM InputEvent
InputEvent object
An event occurs when the content of a form element changes, which belongs to the InputEvent object.
Input event properties and methods
Properties/Methods | Description |
---|---|
data | Returns the inserted characters. |
dataTransfer | Returns an object containing the data that has been dragged or inserted/deleted. |
getTargetRanges() | Returns an array containing the target range, which will be affected by insertion/deletion. |
inputType | Returns the type of change (i.e., "inserting" or "deleting"). |
isComposing | Returns whether the event status is currently being composed. |
Inherited Properties and Methods
InputEvent inherits all properties and methods from the following objects:
Event Type
These event types belong to the InputEvent object:
Events | Description |
---|---|
oninput | This event occurs when the element receives user input. |