reset (JavaScript 1.0)

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

Properties & Events

KeyDescriptionAvailability
valueText displayed on the button.
chrome 1.0safari 1.0Firefox 1.0ie 3.0opera 7.0
onclickEvent handler for when a user clicks the button.
chrome 1.0safari 1.0Firefox 1.0ie 3.0opera 7.0

Result from the Online TryIt-Editor
chrome 1.0safari 1.0Firefox 1.0ie 3.0opera 4.0

Examples having uses of: 'reset'