🔸event.type

browserevent ⟩ .type

device-dependent input events

  • mouse: “mousedown”, “mousemove”, “mouseup

  • mobile devices: “touchstart”, “touchmove”, “touchend

  • keyboard: “keydown”, “keyup

UI events

  • "focus", "change", "submit" ...

state-change events

  • "load" (on Window)

  • "DOMContentLoaded" (on Document)

  • "online", "offline" (on Window): network connectivity

  • "popstate" (on Window): browser’s Back button clicked.

Last updated

Was this helpful?