eventPhase

eventPhase returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.

Syntax

event.eventPhase

Values

Number Name Description
0 NONE Events not currently dispatched are in this phase.
1 CAPTURING_PHASE When an event is dispatched to an object that participates in a tree it will be in this phase before it reaches its target.
2 AT_TARGET When an event is dispatched it will be in this phase on its target.
3 BUBBLING_PHASE When an event is dispatched to an object that participates in a tree it will be in this phase after it reaches its target.

Default

0

Examples

Internal

bubbles

cancelable

composed

composedPath

currentTarget

defaultPrevented

Event

isTrusted

preventDefault

stopImmediatePropagation

stopPropagation

target

timeStamp

type

External

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu