Section 25.93. Element.dispatchEvent( ): dispatch a synthetic event to this node


25.93. Element.dispatchEvent( ): dispatch a synthetic event to this node

DOM Level 2 Events:

25.93.1. Synopsis

 boolean dispatchEvent(Event evt)     tHRows EventException; 

25.93.1.1. Arguments

evt

The Event object to be dispatched.

25.93.1.2. Returns

false if the preventDefault( ) method of evt is called at any time during the propagation of the event, or TRue otherwise.

25.93.1.3. Throws

This method throws an exception if the Event object evt is not initialized, or if its type property is null or the empty string.

25.93.2. Description

This method dispatches a synthetic event created with Document.createEvent( ) and initialized with the initialization method defined by the Event interface or one of its subinterfaces. The node on which this method is called becomes the target of the event, but the event first propagates down the document tree during the capturing phase, and then, if the bubbles property of the event is true, it bubbles up the document tree after being handled at the event target itself.

25.93.3. See Also

Document.createEvent( ), Event.initEvent( ), MouseEvent.initMouseEvent( )




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net