Event Bubbling and Capturing in JavaScript

Опубликовано: 02 Ноябрь 2024
на канале: techsith
84,748
2.6k

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. If no event handler is set for that object, the event bubbles up (like a bubble in water) to the objects parent.

*My Udemy Courses
https://www.udemy.com/js-masterclass/
https://www.udemy.com/course/react-ho...

Follow me for technology updates
  / techsith  
  / techsith  
  / techsith1  
  / 13677140  
  / patelhemil  

Help me translate this video.
https://www.youtube.com/timedtext_cs_...
Note: use https://translate.google.com/ to translate this video to your language. Let me know once you do that so i can give you credit. Thank you in advance.