HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

eventPhase

Description

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

Syntax

event.eventPhase

Values

NumberNameDescription
0NONEEvents not currently dispatched are in this phase.
1CAPTURING_PHASEWhen an event is dispatched to an object that participates in a tree it will be in this phase before it reaches its target.
2AT_TARGETWhen an event is dispatched it will be in this phase on its target.
3BUBBLING_PHASEWhen 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

1