[Chapter 21] Reference: Form.reset()
Author: David Flanagan
Date: Fri Aug 29 11:16:06 1997

#

| Chapter 21 JavaScript Reference |

# Form.reset() Method

## Name

Form.reset() Method---reset the elements of a form

## Availability

Navigator 3.0

## Synopsis

    form.reset()

### Arguments

None.

### Returns

Nothing.

## Description

The `reset()` method resets the specified form, restoring each element of the form to its default value, exactly as if a Reset button had been pressed by the user. The form's `onreset()` event handler is first invoked, and may prevent the reset from occurring by returning the value `false`.

## See Also

"Form", "Form.onreset()"

Form.onsubmit() |  | Form.submit()