Coding Ninjas Logo

Home > JavaScript Questions > What do you mean by Event Bubbling and Event Capturing?

What do you mean by Event Bubbling and Event Capturing?


Answer:

There are two ways for accomplishing event propagation and the order in which an event is received in the HTML DOM API

These are Event Bubbling and Event Capturing. In the former, the event is directed towards its intended target, whereas the event goes down to the element in the latter.