Tag: event capturing

  • Event Bubbling and Capturing in JavaScript

    Understanding Event Bubbling and Event Capturing phase in DOM and how to use it. Event Bubbling ———————— Event bubbling directs an event to its intended target, it works like this: A button is clicked and the event is directed to the button. If an event handler is set for that object, the event is triggered.…