Easy Tutorial
❮ Att Global Data Att Object Width ❯

HTML <input> formaction Attribute

HTML <input> Tag

Example

An HTML form with two submit buttons (different action values):


Browser Support

Internet Explorer 10, Firefox, Opera, Chrome, and Safari support the formaction attribute.

Note: Internet Explorer 9 and earlier versions do not support the formaction attribute of the <input> tag.


Definition and Usage

The formaction attribute specifies the URL of the file that will process the input control when the form is submitted.

The formaction attribute overrides the action attribute of the <form> element.

Comment: The formaction attribute is applicable for type="submit" and type="image".


Differences Between HTML 4.01 and HTML5

The formaction attribute is a new attribute in HTML5.


Syntax

Attribute Values

Value Description
URL Specifies the URL of the file that will process the input control when the form is submitted. Possible values: absolute URL - a full address of a page (e.g., href="http://www.example.com/formresult.html")<br> relative URL - a file within the current site (e.g., href="formresult.html")
❮ Att Global Data Att Object Width ❯