eventPhase Event Property in JavaScript
eventPhase Event Property in JavaScript
The eventPhase event property is used to return number that indicates which phase of event flow is currently being evaluated. It has 4 constants. These are:-
- NONE (0)
- CAPTURING_PHASE => Event flow is in capturing phase (1)
- AT_TARGET => Event flow is in target phase (2)
- BUBBLING_PHASE => Event flow is in bubbling phase (3)
Syntax:-
Its syntax is:- event.eventPhase
Return:-
Its return is:- number denoting which phase of event flow is currently being evaluated