JavaScript Reset Object

The JavaScript Reset object is a property of the form object. An example is:

<INPUT TYPE="RESET" VALUE="Clear">

Here's how it looks:

Properties

  • form - The form that contains the button.
  • name - The name of the reset button.
  • type - The type is "reset".
  • value - The text that appears on the button.

Methods

  • blur() - Remove the input focus from the button.
  • click() - Performs the same as though the user clicked the button.
  • focus() - Give the input focus to the button.

Events

  • onBlur
  • onClick
  • onFocus