Skip to main content

Explain event bubbling and capturing.

Entry JavaScript
Quick Answer Event bubbling: an event fires on the target element, then bubbles up through parent elements to the root. Event capturing: the event starts at the root and travels down to the target before bubbling up. addEventListener(event, handler, true) uses capturing phase. Default is bubbling. stopPropagation() prevents the event from continuing up or down the chain.

Answer

Bubbling: Events propagate from child to parent.

Capturing: Events propagate from parent to child.

Controlled using addEventListener(..., true).

S
SugharaIQ Editorial Team Verified Answer

This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice