Prevents other listeners of the same event from being called.
event.stopImmediatePropagation();
If several listeners are attached to the same element for the same event type, they are called in order in which they have been added. If during one such call, event.stopImmediatePropagation()
is called, no remaining listeners will be called.
Specification | Status | Comment |
---|---|---|
DOM The definition of 'Event.stopImmediatePropagation()' in that specification. | Living Standard | |
DOM4 The definition of 'Event.stopImmediatePropagation()' in that specification. | Recommendation | Initial definition |
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | 6.0 | (Yes) | 10.0 (10.0) | 9.0 | 15.0 | 5.0 |
Feature | Android | Edge | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | ? | (Yes) | ? | ? | ? | ? |
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Event/stopImmediatePropagation