stopPropagation

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

Syntax

event.stopPropagation()

Examples

Internal

bubbles

cancelable

composed

composedPath

currentTarget

defaultPrevented

Event

eventPhase

isTrusted

preventDefault

stopImmediatePropagation

target

timeStamp

type

External

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu