Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

eventPhase property

Gets the event phase that is being evaluated.

Document Object Model (DOM) Level 3 Events Specification, Section 4.1Internet Explorer 9



HRESULT value = object.get_eventPhase(* p);

Property values

Type: unsigned short


The event is in the capturing phase.


The event is being evaluated at the target element.


The event is in the bubbling phase.

Standards information


During the capturing phase, events are dispatched to parent elements before objects that are lower in the hierarchy. Next, during the bubbling phase, events are dispatched to target elements followed by parent objects. The event phase is AT_TARGET when the element that receives the event (IDOMEvent::target) is the same element as the element that is processing the event (IDOMEvent::currentTarget). The target element receives both capture and bubble events if both are registered.



Community Additions

© 2015 Microsoft