juniorJavaScript
What is event bubbling?
Updated May 6, 2026
Short answer
Events propagate from child to parent.
Deep explanation
Event bubbles up DOM tree unless stopped.
Real-world example
Click handling in nested UI elements.
Common mistakes
- Not stopping unwanted propagation.
Follow-up questions
- What is capturing phase?
- How to stop bubbling?