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

HTML DOM Form action property

Form action property

Form Object Reference Form Object


Definition and Usage

The action property can set or return the action attribute of the form.

The action property defines where the data is sent when the form is submitted.

Syntax

formObject.action=

URL


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the action property


Example

Example

Return the URL where the form is submitted:

First name:

Last name:

The output of the above example is:

form_action.html

Try it »


Form Object Reference Form Object