DOM Input Reset Object
The Input Reset object represents a reset button in an HTML form.
For each <input type="reset">
tag in an HTML form, a Reset object is created.
The Input Reset object can be accessed by searching through the elements[] array of the form, or by using document.getElementById().
Properties
Property | Description |
---|---|
alt |
Sets or returns an alternate text to display if a browser does not support reset buttons |
disabled |
Sets or returns whether or not a reset button should be disabled |
form |
Returns a reference to the form that contains the reset button |
name |
Sets or returns the name of a reset button |
type |
Returns the type of form element a reset button is |
value |
Sets or returns the text that is displayed on a reset button |
Standard Properties and Methods
This object also supports the standard properties and methods.
Standard Events
This object also supports the standard events.