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:
|See also:||Event type constants|