Section 25.206. MouseEvent.initMouseEvent( ): initialize the properties of a MouseEvent object


25.206. MouseEvent.initMouseEvent( ): initialize the properties of a MouseEvent object

DOM Level 2 Events

25.206.1. Synopsis

 void initMouseEvent(String typeArg,                     boolean canBubbleArg,                     boolean cancelableArg,                     AbstractView viewArg,                     long detailArg,                     long screenXArg,                     long screenYArg,                     long clientXArg,                     long clientYArg,                     boolean ctrlKeyArg,                     boolean altKeyArg,                     boolean shiftKeyArg,                     boolean metaKeyArg,                     unsigned short buttonArg,                     Element relatedTargetArg); 

25.206.1.1. Arguments

The many arguments to this method specify the initial values of the properties of this MouseEvent object, including the properties inherited from the Event and UIEvent interfaces. The name of each argument clearly indicates the property for which it specifies the value, so they are not listed individually here.

25.206.2. Description

This method initializes the various properties of a newly created MouseEvent object. It may be called only on a MouseEvent object created with Document.createEvent( ) and only before that MouseEvent is passed to Element.dispatchEvent( ).

25.206.3. See Also

Document.createEvent( ), Event.initEvent( ), UIEvent.initUIEvent( )




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