top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is Bubbling Phase & Capturing Phase in Javascript?

0 votes
465 views
What is Bubbling Phase & Capturing Phase in Javascript?
posted Feb 23, 2018 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Event bubbling and capturing are two ways of event propagation in the HTML DOM API, when an event occurs in an element inside another element, and both elements have registered a handle for that event. The event propagation mode determines in which order the elements receive the event.

Capturing phase – the event goes down to the element.
Bubbling phase – the event bubbles up from the element

enter image description here.

See More Here : https://javascript.info/bubbling-and-capturing

answer Feb 27, 2018 by Sandeep Bedi
...