The stopImmediatePropagation()
method of the Event
interface prevents other listeners of the same event from being called.
If several listeners are attached to the same element for the same event type, they are called in the order in which they were added. If stopImmediatePropagation()
is invoked during one such call, no remaining listeners will be called.
Syntax
event.stopImmediatePropagation();
Specifications
Specification | Status | Comment |
---|---|---|
DOMThe definition of 'Event.stopImmediatePropagation()' in that specification. | Living Standard |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
stopImmediatePropagation
|
Chrome
Full support 6 |
Edge
Full support 12 |
Firefox
Full support 10 |
IE
Full support 9 |
Opera
Full support 15 |
Safari
Full support 5 |
WebView Android
Full support ≤37 |
Chrome Android
Full support 18 |
Firefox Android
Full support 10 |
Opera Android
Full support 14 |
Safari iOS
Full support 5 |
Samsung Internet Android
Full support 1.0 |
Legend
- Full support
- Full support
Event.stopImmediatePropagation() by Mozilla Contributors is licensed under CC-BY-SA 2.5.