Event propagation - Basic JavaScript Fast (60) | stopPropagation, stopImmediatePropagation

Опубликовано: 15 Октябрь 2024
на канале: Begin Coding Fast
50
0

This video discusses event propagation in JavaScript. Event propagation involves bubbling and capturing. Bubbling means that events are triggered on an element up to its ancestors. On the other hand, capturing means that events are handled from outermost ancestor down to target element.

We can stop the propagation of an event handler on a DOM element. There are two ways of doing so. We can stop one event handler from propagating, while allowing other event handlers to be executed. Or, we can stop all event handlers from propagating.

2:33 - Bubbling
9:07- stopPropagation, stopImmediatePropagation
15:36 - Capturing

Playlist of my JavaScript course
   • [20 hours] JavaScript tutorial for be...  

Playlist of my HTML5 and CSS3 tutorials
   • [12 hours] HTML and CSS tutorials for...  

Playlist of my algorithm walkthrough
   • Algorithms and data structures | DSA ...  

Playlist of my Java course
   • [14 hours] Java tutorial for beginner...  

Playlist of my Java examples
   • Java projects for beginners | Java pr...  

#javascripttutorial #javascriptfullcourse #begincodingfast #javascript #bubbling #capturing