Skip to content

Event Bubbling & Capturing

When an event fires on an element, it propagates through the DOM tree in three phases: capturing (down), target (at), and bubbling (up).

Capturing (down) → Target → Bubbling (up). Default listeners run in bubbling phase. { capture: true } for capturing phase. stopPropagation() halts propagation.