Reset : HTMLElement

Reset button on an HTML form that resets all form elements to their default values.

Browser/User Agent Support

IEMozillaNetscapeOperaSafari
3.0+1.0+2.0+7.0+1.0+

Constructors

ConstructorIEMozillaNetscapeOperaSafari
Creates a new instance of a Reset object.
3.0+1.0+2.0+7.0+1.0+
 

Properties

PropertyIEMozillaNetscapeOperaSafari
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

Reset Reset()

Creates a new instance of a Reset object.

Visibility
internal

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.