Skip to content

Topics

Jump to a topic.

Search questions

Find a question by title, tag, or summary.

Chapter 02

Events

How the DOM delivers events: the dispatch path and its phases, delegation, default actions, listener options, custom events, timing relative to microtasks, and choosing input events.
  1. 010How does event dispatch work — capture, target, and bubble?Coremedium
  2. 020What is event delegation, and when does it break?Coremedium
  3. 030What's the difference between preventDefault(), stopPropagation(), and stopImmediatePropagation()?easy
  4. 040What do the once, passive, capture, and signal listener options do?medium
  5. 050How do you create and dispatch custom events, and what does isTrusted mean?medium
  6. 060Is dispatchEvent() synchronous, and why do microtasks run differently for a real click?hard
  7. 070Which input events should you listen to — pointer, mouse, touch, keyboard, or input?medium