Reset : Reset : Form JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Form » Reset »

 

Reset










The Reset object represents a Reset button within an HTML form.

The button is created using the HTML tag and specifying the TYPE attribute as reset.

Reset buttons are used for form submissions.



















































Property/Method Description
blur() Removes focus from Reset button
click() Simulates a mouse click on a Reset button
focus() Sets the focus to the Reset button
form Specifies the form name that contains the Reset button
handleEvent() Invokes the event handler
name HTML NAME attribute for the Reset button
onBlur Event handler for Blur event
onClick Event handler for Click event
onFocus Event handler for Focus event
type HTML TYPE attribute for the Reset button
value HTML VALUE attribute for the Reset button















<html>
    <head>
    <title> Example of the reset object</title>
    </head>
    <body>
    <form name="form1">
    Click the Reset button to reset the form.
    <br><br><br>
    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>
    <br>
    <br>
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Form
» Reset