Objetos de evento HTML DOM
Objetos de evento
Quando um evento ocorre em HTML, o evento pertence a um determinado objeto de evento, como um evento de clique do mouse pertence ao objeto MouseEvent.
Para um tutorial sobre Eventos, leia nosso Tutorial de Eventos JavaScript .
O objeto de evento
Todos os objetos de evento são baseados no objeto de evento e herdam todas as suas propriedades e métodos
Event Object | Description |
---|---|
Event | The parent of all event objects |
Outros objetos de evento
Estes são os objetos de evento mais comuns:
Event Object | Description |
---|---|
AnimationEvent | For CSS animations |
ClipboardEvent | For modification of the clipboard |
DragEvent | For drag and drop interaction |
FocusEvent | For focus-related events |
HashChangeEvent | For changes in the anchor part of the URL |
InputEvent | For user input |
KeyboardEvent | For keyboard interaction |
MouseEvent | For mouse interaction |
PageTransitionEvent | For navigating to, and away from, web pages |
PopStateEvent | For changes in the history entry |
ProgressEvent | For the progress of loading external resources |
StorageEvent | For changes in the window's storage area. |
TouchEvent | For touch interaction |
TransitionEvent | For CSS transitions |
UiEvent | For user interface interaction |
WheelEvent | For mousewheel interaction |