What is Event bubbling?
Utilisateur anonyme
I think it's a little bit vague description. Event bubbling is one of the ways of event propagation in HTML DOM API. Event propagation is the method which determines the order, in which nested element receives an event. For eg- Suppose we have two nested divs, Parent and Child. Let's add two methods to both divs click event. <div> <div></div> </div> Whenever we click on the above nested div which function is going to fire first? In event bubbling, child function is fired first then parent method is fired while in an event capturing the parent function is fired first and then child function is fired.