Gets the event phase that is being evaluated.
HRESULT IDOMEvent::get_eventPhase(USHORT *p);
- Pointer to a variable of type unsigned short that receives one of the values listed in Possible Values.
1 The event is in the capturing phase. 2 The event is being evaluated at the target element. 3 The event is in the bubbling phase.
Returns S_OK if successful, or an error value otherwise.
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_TARGETwhen 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.