SQL PHP HTML ASP JavaScript articles and free scripts to download
HTML Web Form

Reset Button of a Web form

Reset button is usually used with submit button. Purpose of using reset button is to initialize all user-input values. This means that each form field will be set to its initial value when the form is loaded i.e, either ""(null) or the value specified in the value attribute of the form field.
Reset button can be created as :
<input type="Reset" name="<Name of the Reset button >" value="valueof the button">

Attributes of Reset Button:

Name: Specifies the name of the object through which it can be referenced.
value: Specifies the value of the Reset button. this will be displayed on the Reset button.

Example:

<input type="Reset" name="resetbtn" value="Reset Form">

This places a Reset button within the HTML form, which can be referenced by using its name "resetbtn" with the value "Reset Form"
The Reset button will be displayed as below:
Enter some text here and click on reset button :

Submit button of a web form

Be the first to post comment on this article :


Google+
Post Comment This is for short comments only. Use the forum for more discussions.
Name
Email( not to be displayed)Privacy Policy
1+2=This is to prevent automatic submission by spammers. Please enter the result of the sum as asked



Join Our Email List
Email:  
For Email Newsletters you can trust
HTML . MySQL. PHP. JavaScript. ASP. Photoshop. Articles. FORUM Contact us

©2000-2014 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer