Evento de entrada HTML DOM
❮ Eventos DOM ❮ Objetos de evento
O objeto InputEvent
Os eventos que ocorrem quando o conteúdo de um elemento de formulário é alterado, pertencem ao objeto InputEvent.
Propriedades e métodos do evento de entrada
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 |
Propriedades e métodos herdados
O InputEvent herda todas as propriedades e métodos de:
Tipos de eventos
Esses tipos de eventos pertencem ao objeto InputEvent:
Event | Description |
---|---|
oninput | The event occurs when an element gets user input |
❮ Eventos DOM ❮ Objetos de evento