Form action property
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





All major browsers support the action property
Example
Example
Return the URL where the form is submitted:
The output of the above example is:
form_action.html
Try it »
Form Object