Event.eventPhase (Property)

Describes what phase the event is currently being processed in.

Availability:

DOM level - 2
JavaScript - 1.5
Netscape - 6.0
Property/method value type:Number primitive
JavaScript syntax:NmyEvent.eventPhase

A new concept that has been introduced at DOM level 2 is that of event phases. This allows your handler to determine the current disposition of an event from the script interface. You can examine the eventPhase property and test it against one of the predefined constants.

DOM level 2 introduces these static constants to the Event class to describe the current state of an event that is encapsulated by the Event object:

ValueSymbolic Name
1CAPTURING_PHASE
2AT_TARGET
3BUBBLING_PHASE

See also:Event type constants

Property attributes:

ReadOnly.