Objetos de eventos HTML DOM
Objetos de evento
Cuando ocurre un evento en HTML, el evento pertenece a un determinado objeto de evento, como un evento de clic del mouse pertenece al objeto MouseEvent.
Para obtener un tutorial sobre eventos, lea nuestro Tutorial de eventos de JavaScript .
El objeto de evento
Todos los objetos de evento se basan en el objeto de evento y heredan todas sus propiedades y métodos.
Event Object | Description |
---|---|
Event | The parent of all event objects |
Otros objetos de evento
Estos son los objetos de evento más comunes:
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 |