HTML DOM InputEvent
L'oggetto InputEvent
Gli eventi che si verificano quando il contenuto di un elemento del modulo cambia, appartiene all'oggetto InputEvent.
Proprietà e metodi di 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 |
Proprietà e metodi ereditati
InputEvent eredita tutte le proprietà e i metodi da:
Tipi di eventi
Questi tipi di eventi appartengono all'oggetto InputEvent:
Event | Description |
---|---|
oninput | The event occurs when an element gets user input |