<form> <input name="myText"> <input type="submit" value="Submit" formaction="http://www.PuStudy.Com/resources/html-forms-action.html"> </form>
In the above example we add the
formaction attribute to an
formaction attribute allows you to specify the URL of the file that will process the control when submitted.
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
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.