How Events Move Through the DOM: Exploring Event Bubbling and Capturing
Lets take an example,
We create a div and set up an onclick event that shows an alert with the message "div handler". Inside the div, there is a button labeled "Click Me".
https://codepen.io/kyhtvzke-the-styleful/pen/PwojjRJ
When you click the butt...
blogs-himanshu.hashnode.dev5 min read