stopPropagation

The stopPropagation JS Event when dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.

Syntax

event.stopPropagation()

Examples

stopImmediatePropagation

bubbles

cancelable

composed

composedPath

currentTarget

defaultPrevented

Event

eventPhase

isTrusted

preventDefault

stopImmediatePropagation

target

timeStamp

type

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu