Appendix A. Common Events
Here are some of the most commonly used JavaScript events.
Event Name | Event Type | Specification | Fired when... |
---|---|---|---|
abort | UIEvent | DOM L3 | The loading of a resource has been aborted. |
blur | FocusEvent | DOM L3 | An element has lost focus (does not bubble). |
click | MouseEvent | DOM L3 | A pointing device button has been pressed and released on an element. |
contextmenu | MouseEvent | DOM L3 | The right button of the mouse is clicked (before the context menu is displayed). |
dblclick | MouseEvent | DOM L3 | A pointing device button is clicked twice on an element. |
drag | DragEvent | HTML5 | An element or text selection is being dragged (every 350ms). |
dragend | DragEvent | HTML5 | A drag operation is ending (by releasing a mouse button or hitting the escape key). |
dragenter | DragEvent | HTML5 | A dragged element ... |
Get Jump Start JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.