stopImmediatePropagation()
An event method that stops the event travelling further and also skips any remaining listeners on the current element.
In more detail
It also stops the event from travelling to other elements, like stopPropagation. Listeners on one element run in the order they were added, so this only affects those added after the current one.
Related terms
- stopPropagation — An event method that stops the event from travelling to further elements, while other listeners on the current element still run.
- event propagation — The journey of an event through the DOM: down from the window to the target (capturing), at the target, then back up (bubbling).
Taught in
- Event Phases: Capturing, Target And Bubbling Demystified — Frontend Architecture & Web Platform