HTML <input> Tag with the 'formaction' Attribute

<form>

<input name="myText">
<input type="submit" value="Submit" formaction="http://www.htmlcodes.ws/resources/html-forms-action.cfm">

</form>

In the above example we add the formaction attribute to an <input> element.

The formaction attribute allows you to specify the URL of the file that will process the control when submitted.

The formaction attribute is used on input controls that are submit buttons. The W3C says:

The action of an element is the value of the element's formaction attribute, if the element is a submit button and has such an attribute, or the value of its form owner's action attribute, if it has one, or else the empty string.

The formaction attribute can also be used with the <button> element.