Reset button on an HTML form that resets all form elements to their default values.
Browser/User Agent Support
| IE | Mozilla | Netscape | Opera | Safari | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
|---|
Constructors
| Constructor | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|
Creates a new instance of a Reset object. | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
Properties
| Property | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|
Event handler for when a user clicks the button. | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
Text displayed on the button. | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
References
Button | Form | HTMLElement | Input | HTMLInputElement
Availability
JavaScript 1.0 | enhanced in JavaScript 1.1
Constructor Detail
Property Detail
static Function onclick
Event handler for when a user clicks the button.
- See Also
Form.onreset | Form.reset | HTMLElement.onclick | EventListener | EventTarget | MouseEvent
- Availability
JavaScript 1.0 | enhanced in JavaScript 1.1
String value
Text displayed on the button.
