You are here: Reference > HTML > tags > input:reset

input:reset element

Browser support:
Creates a reset button. Clicking on a reset button resets all controls within the form to their initial values.
You can modify the label of the reset button with the value attribute. See the example for details.
If you want to see the HTML tags by categories, please visit this page.
This element cannot have a closing tag.
JavaScript page for this element: input:reset.

Possible members:

Attributes
Events
Styles
Pseudos
accessKey
Sets an access key to an element.
class
Sets the style class or classes that belong to the element.
contentEditable
3
Sets whether the contents of the object are editable.
dataFld
Specifies which field of a given data source should be bound to the specified object.
dataSrc
Sets the identifier of the data source that is bound to the element.
dir
Sets the text direction as related to the lang attribute.
DISABLED
Sets the state of an object for user interaction.
HIDEFOCUS
Specifies whether a dotted rectangle (focus rectangle) is drawn around an object while it has focus.
id
Sets a unique identifier for the object.
lang
Specifies the language of the element.
language
Sets the scripting language for the current element. Use it only for the script element.
name
Sets the name of a form control that affects the contents of the message submitted to the server.
size
Specifies the width of a control, in characters.
style
Sets an inline style associated with an element.
tabIndex
Specifies the tabbing order for keyboard navigation using the TAB key.
title
Specifies a tooltip for an element.
type
Sets the type of the input element.
unSelectable
Sets whether the selection process can start in an element's content.
value
Specifies the initial value for a control element.

Example HTML code 1:

This example illustrates the use of the reset button element:
<form method="post" action="#URL#">
    Username: <input type="text" name="userName" />
    <br />
    Password: <input type="password" name="password" />
    <br /><br />
    <input type="reset" value="Reset to initial state" />
    <br />
    <input type="submit" value="Sign in" />
</form>
Did you find this example helpful? yes no

Related pages:

External links:

User Contributed Comments

Post Content

Post Content