eventPhase event attribute
Definition and Usage
The eventPhase event attribute returns a number indicating which phase of the event flow is currently being evaluated.
This number is represented by 4 constants:
- 0. NONE
- 1. CAPTURING_PHASE - The event flow is in the capturing phase
- 2. AT_TARGET - The event flow is in the target phase
- 3. BUBBLING_PHASE - The event flow is in the bubbling phase
浏览器支持
表中的数字注明了完全支持该属性的首个浏览器版本。
属性 | Chrome | IE | Firefox | Safari | Opera |
---|---|---|---|---|---|
eventPhase | Supported | 9.0 | Supported | 2.0 | 8.0 |
Syntax
event.eventPhase
Technical Details
Return Value: |
Numeric values representing which phase of the event flow is currently being evaluated. Possible Values:
|
---|---|
DOM Version: | DOM Level 2 Events |