event.stopImmediatePropagation() prevents other listeners of the same event from being called (MDN). That includes remaining listeners on the current element and listeners on other elements later in the path.
Pass the required arguments shown below. Check return values and browser support before you rely on the result.
Syntax
Call event.stopImmediatePropagation. Start with this line.
JavaScript
event.stopImmediatePropagation()
Call
What it does
event.stopImmediatePropagation()
Primary signature.
event.stopImmediatePropagation(...)
Call with the arguments your case needs.
Built into the browser. Call stopImmediatePropagation(...) on an Event instance — no import required.
Library declarations
JavaScript
event.stopImmediatePropagation()
Parameters
This member has no parameters beyond those shown in the signature.
Child stops immediately. First child handler wins.
Second child skipped. Same-element leftover is blocked.
Parent skipped. No further path listeners run.
Compatibility
Browser Support
Event.stopImmediatePropagation() is Baseline Widely available (MDN: since July 2015). It is also available in Web Workers. Safe to use in modern teaching and production code.
✓ Baseline · Widely available
Event.stopImmediatePropagation()
Stops remaining listeners on the current target and any later listeners on the event path. Stronger than stopPropagation for same-element handlers.
ExcellentBaseline
Google ChromeSupported · long-standing
Full support
Mozilla FirefoxSupported · long-standing
Full support
Apple SafariSupported · modern versions
Full support
Microsoft EdgeSupported · Chromium
Full support
OperaSupported · modern versions
Full support
Internet ExplorerSupported · IE9+
Full support
stopImmediatePropagation()Widely available
Bottom line: Call it when later same-element handlers must not run. Pair with preventDefault() only when you also need to cancel the browser default.
Frequently Asked Questions
It prevents any other listeners for the same event from running—both remaining listeners on the current element and listeners on any other elements that would run later in the event path.
No. MDN marks Event.stopImmediatePropagation() as Baseline Widely available (since July 2015). It is not Deprecated, Experimental, or Non-standard. It is also available in Web Workers.
stopPropagation() stops the event from reaching other elements, but other listeners already registered on the same element still run. stopImmediatePropagation() also skips those remaining same-element listeners.
Yes. Listeners on the same element for the same type run in the order they were added. Only listeners after the one that calls stopImmediatePropagation() are skipped on that element.
No. It only affects which listeners run. Use preventDefault() to cancel the browser default (when the event is cancelable).
When you must guarantee no later handler on the same target runs—for example a validation gate that must win over other click handlers on the same button.