Reset.form : Reset : Form JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Form » Reset »

 

Reset.form







The form property obtains the name of the form that contains the Reset button.












<html>
    <head>
    <title> Example of the reset form property</title>
    </head>
    <body>
    <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 value=Reset
    onClick='alert("The form name is: " + document.form1.resetbutton.form.name)'>
    <br>
    <br>
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Form
» Reset