Event Bubbling in JavaScript

Updated: Sep 20, 2020

Event Bubbling

When a button is clicked then the event get bubbled to the top html elements until it reaches <html> element.

Event delegation is the way in which we catch the bubbled up event from the target to the parent element where the event handler is attached.

Use cases for Event delegation

10 views0 comments

Recent Posts

See All

"this" in javascript

Here we will talk about this keyword in javascript and how it is different from any other javascript object. "this" is and current context object in runtime engine, but unlike any other object the pro