We are overhauling the docs, and we need your help!Do you have a few minutes to answer what you think is missing?
Take Survey
Event Reference
Event Interfaces

AnimationEvent

Events providing information related to animations.

DragEvent
ErrorEvent

Events providing information related to errors in scripts or in files.

FocusEvent

Focus-related events like focus, blur, focusin, or focusout.

HotkeyEvent
IntersectEvent
KeyboardEvent
MouseEvent
PointerEvent
ProgressEvent
ResizeEvent
SecurityPolicyViolationEvent

Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated.

TouchEvent
TransitionEvent

Events providing information related to transitions.

UIEvent

Simple user interface events.

WheelEvent

Events that occur due to the user moving a mouse wheel or similar input device.

Non-standard Events

hotkey
Fired when the supplied keycombo is pressed anywhere in the document.
intersect
Fired when the element appears in the viewport (or another element).
resize
Fired when element is resized.
touch
Normalized handler for pointerdown->move->up with powerful custom modifiers.

Mouse Events

auxclick
click

A pointing device button has been pressed and released on an element.

contextmenu
dblclick
mousedown
mouseenter
mouseleave
mousemove
mouseout
mouseover
mouseup

Pointer Events

gotpointercapture
Fired when an element receives pointer capture.
lostpointercapture
Fired after pointer capture is released for a pointer.
pointercancel
A browser fires this event if it concludes the pointer will no longer be able to generate events (for example the related device is deactivated).
pointerdown
Fired when a pointer becomes active buttons state.
pointerenter
Fired when a pointer is moved into the hit test boundaries of an element or one of its descendants, including as a result of a pointerdown event from a device that does not support hover (see pointerdown).
pointerleave
Fired when a pointer is moved out of the hit test boundaries of an element. For pen devices, this event is fired when the stylus leaves the hover range detectable by the digitizer.
pointermove
Fired when a pointer changes coordinates. This event is also used if the change in pointer state can not be reported by other events.
pointerout
Fired for several reasons including: pointer is moved out of the hit test boundaries of an element; firing the pointerup event for a device that does not support hover (see pointerup); after firing the pointercancel event (see pointercancel); when a pen stylus leaves the hover range detectable by the digitizer.
pointerover
Fired when a pointer is moved into an element's hit test boundaries.
pointerup
Fired when a pointer is no longer active buttons state.

Keyboard Events
Drag & Drop Events
We are overhauling the docs, and we need your help!
Do you have a few minutes to answer what you think is missing?
Take survey