eventPhase Event Property
Description
The eventPhase event property returns a number that indicates which phase of the event flow is currently being evaluated.
The number is represented by 4 constants:
0. NONE
1. CAPTURING_PHASE - The event flow is in capturing phase
2. AT_TARGET - The event flow is in target phase, i.e. it is being evaluated at the event target
3. BUBBLING_PHASE - The event flow is in bubbling phase
Syntax
event.eventPhase
Technical Details
Return Value: | A Number, representing which phase of the event flow is currently being evaluated
Possible values: 0. NONE |
---|---|
DOM Version: | DOM Level 2 Events |
Browser Support
event.eventPhase
is a DOM Level 2 (2001) feature.
It is fully supported in all browsers:
Chrome | Edge | Firefox | Safari | Opera | IE |
Yes | Yes | Yes | Yes | Yes | 9-11 |