JavaScript Submit Object

The JavaScript Submit Object is a property of the form object. Example code:

<INPUT TYPE="submit" NAME="cmdSubmit" VALUE="Submit">

How it looks:

Properties

  • form - The form that contains the submit button.
  • name - The name of the submit button.
  • type - Type is "submit".
  • value - The text that will appear on the button.

Methods

  • blur() - Removes the input focus from the submit button.
  • click() - Performs the same as though the user clicked the button.
  • focus() - Gives the input focus to the submit button.

Events

  • onBlur
  • onClick
  • onFocus