Section 25.175. Input.click( ): simulate a mouse click on a form element


25.175. Input.click( ): simulate a mouse click on a form element

DOM Level 2 HTML

25.175.1. Synopsis

 void click( ) 

25.175.2. Description

The click( ) method of a form element simulates a mouse click on the form element but does not invoke the onclick event handler of the element.

The click( ) method is not often useful. Because it does not invoke the onclick event handler, it is not useful to call this method on elements of type "button"; they don't have any behavior other than that defined by the onclick handler. Calling click( ) on elements of type "submit" or "reset" submits or resets a form, but this can be more directly achieved with the submit( ) and reset( ) method of the Form object itself.




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