javascript Element click( )
@March 15, 2008, 1:22 a.m.
click( ) | Firefox/Netscape/NN 2 IE 4 Chrome/Safari/DOM 1 |
Simulates the click action of a user on the element. Fires an onclick event in Internet Explorer 4 and later and Navigator 4 and later. Note in browsers prior to IE 4 and Netscape 6, not all elements are capable of the click( ) method (or onclick event). Also, don't expect all elements that normally change their graphical state when clicked by the user to simulate the same state change during the scripted click. For example, some Macintosh browser versions fail to change the checked state of a checkbox when a script invokes a click( ) method on the checkbox. In this case, invoke the click( ) method only if an onclick event handler executes some code; but also set the checked property of the checkbox as desired. |
|
Parameters | |
None. |
|
Returned Value | |
None. |
Permanent URL:
http://javascript.gakaa.com/element-click-4-0-5-.aspx
Powered by Linode.