This page is Almost Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

stopPropagation

Summary

Prevents propagation of an event beyond the current target.

Method of dom/Eventdom/Event

Syntax

 event.stopPropagation();

Return Value

No return value

Usage

 Use this method to stop event propagation in the capturing or bubbling event phase.

Notes

The event dispatches to all event listeners on the current target (regardless of capturing or bubbling) before the event flow stops. To completely prevent any remaining handlers from running, use the stopImmediatePropagation method instead.

Related specifications

DOM Level 3 Events
Working Draft

See also

Related pages

Attributions