We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

Prevents further propagation of the current event in the capturing and bubbling phases.




See Example 5: Event Propagation in the Examples chapter for a more detailed example of this method and event propagation in the DOM.


See the DOM specification for the explanation of event flow. (The DOM Level 3 Events draft has an illustration.)

preventDefault is a complementary method that can be used to prevent the default action of the event from happening.


Specification Status Comment
The definition of 'Event.stopPropagation()' in that specification.
Living Standard  
The definition of 'Event.stopPropagation()' in that specification.
Document Object Model (DOM) Level 2 Events Specification
The definition of 'Event.stopPropagation()' in that specification.
Obsolete Initial definition

Browser Compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support Yes Yes Yes9 Yes Yes
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support Yes Yes Yes Yes Yes Yes ?