August 1999
Intermediate to advanced
1488 pages
72h 53m
English
reset.click()
The click method of the Reset object is used to simulate a mouse click on the Reset button.
Listing 7.446 shows how the click() method is used.
<html> <head> <title> Example of the reset click method</title> </head> <body> <script language="JavaScript"> <!-- Hide function clickReset(){ document.form1.resetbutton.click(); } function inform(){ alert("The reset button was clicked"); } // End Hide ---> </script> <form name="form1"> Enter Name: <input type="text" Name="name" Size=15> <br> Enter Phone: <input type="text" Name="phone" Size=10> <br><br> <input type="reset" name=resetbutton ... |
Read now
Unlock full access