Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Form submit() method

Form submit() method

Form Object Reference Form Object


Definition and Usage

The submit() method is used to submit the form (click the Submit button).

Syntax

formObject.submit()


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the submit() method


Example

Example

Create a form submit button:

First name:

Last name:

Try it »


Form Object Reference Form Object