Appendix A. Common Events

Here are some of the most commonly used JavaScript events.

Event NameEvent TypeSpecificationFired when...
abortUIEventDOM L3The loading of a resource has been aborted.
blurFocusEventDOM L3An element has lost focus (does not bubble).
clickMouseEventDOM L3A pointing device button has been pressed and released on an element.
contextmenuMouseEventDOM L3The right button of the mouse is clicked (before the context menu is displayed).
dblclickMouseEventDOM L3A pointing device button is clicked twice on an element.
dragDragEventHTML5An element or text selection is being dragged (every 350ms).
dragendDragEventHTML5A drag operation is ending (by releasing a mouse button or hitting the escape key).
dragenterDragEventHTML5A 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.