Common Event Types

Every string below is a valid first argument to addEventListener() — the name of an event to listen for, as in el.addEventListener('click', handler). See the event listeners page for these in action. Click the button to get a random one.

click the button <- 

Mouse

Keyboard

Focus

Touch & Pointer

Drag & Drop

Window & Document

Clipboard