A form with two submit buttons. The first submit button submits the form data to "demo_form.asp", and the second submits to "demo_admin.asp":
![]()
The formaction attribute is supported in Internet Explorer 10, Firefox, Opera, Chrome, and Safari.
Note: The formaction attribute is not supported in Internet Explorer 9 and earlier versions.
The formaction attribute specifies where to send the form-data when a form is submitted. This attribute overrides the form's action attribute.
The formaction attribute is only used for buttons with type="submit".
The formaction attribute is new in HTML5.
| Value | Description |
|---|---|
| URL | Specifies where to send the form data. Possible values:
|
HTML <button> tag
Your message has been sent to W3Schools.