HTML <button> Tag with the 'formaction' Attribute
<form> <!-- ...form contents... --> <button type="submit" formaction="http://www.htmlcodes.ws/resources/html-forms-action.cfm"> Submit </button> </form>
In the above example we add the
formaction attribute to a button control.
formaction attribute allows you to specify the URL of the file that will process the control when submitted.
The W3C says:
The action of an element is the value of the element's
formactionattribute, if the element is a submit button and has such an attribute, or the value of its form owner's
actionattribute, if it has one, or else the empty string.
<button> element creates a button control in an HTML document.
Any contents of the
<button> element appears on the button.
onclick attribute) to make the button actually do something.