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 |
Prev | Home | Next |
Event.dataTransfer | Up | Event.fromElement |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |