Evento de entrada HTML DOM
❮ Eventos DOM ❮ Objetos de eventos
El objeto InputEvent
Los eventos que ocurren cuando cambia el contenido de un elemento de formulario pertenecen al objeto InputEvent.
Propiedades y métodos de 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 |
Propiedades y métodos heredados
InputEvent hereda todas las propiedades y métodos de:
Tipos de eventos
Estos tipos de eventos pertenecen al objeto InputEvent:
Event | Description |
---|---|
oninput | The event occurs when an element gets user input |
❮ Eventos DOM ❮ Objetos de eventos