HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Input Submit Object : Get the URL of the file that will process the input control when the a form is submitted
The formAction property sets or returns the value of the formaction attribute of a submit button.
The formaction attribute specifies the URL of the file that will process the input control when the form is submitted.
The formaction attribute overides the action attribute of the <form> element.
Property | |||||
---|---|---|---|---|---|
formAction | Yes | 10.0 | Yes | Yes | Yes |
Return the formAction property:
Set the formAction property:
Value | Description |
---|---|
URL | Specifies the URL of the file that will process the input control when the form is submitted Note: this will override the action attribute of the <form> element. Possible values:
|
Return Value: | A String, representing the URL for where to send the form-data |
---|
Change the URL for where to send the form-data:
document.getElementById("mySubmit").formAction = "/action_page2";
HTML reference: HTML <input> formaction attribute
❮ Input Submit Object