event propagation

The journey of an event through the DOM: down from the window to the target (capturing), at the target, then back up (bubbling).

In more detail

The browser computes the path from window to target once, then calls matching listeners along it in three phases. stopPropagation ends the journey early.

Example

Adding Capture to a React handler name, as in onClickCapture, runs it in the capture phase.

Related terms

Taught in

References