Frontend · interactive
Event propagation
A click on a button doesn't just happen on the button. The event travels down from the window to it (capture), fires on it (target), then travels back up (bubble). Every ancestor gets a chance to react.
<div id=page> · capture
<section class=card>
<button>
Buy↓ going down · depth 0
- 1. page (capture)
page: capture phase.
Listeners
Step 1 of 4 · read left to right
In production
Tools and technologies
Every DOM event follows this path.
Not tied to one language — use these names when you search docs or design a system.