Reset.click()

JavaScript 1.0+, JScript 1.0+ Nav2+, IE 3+, Opera3+ Syntax

							reset.click()

Description

The click method of the Reset object is used to simulate a mouse click on the Reset button.

Example

Listing 7.446 shows how the click() method is used.

Listing 7.446 Example of the click() Method
 <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 ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.