What is the correct way to add a submit URL to a button element?
button
<button action="http://example.com/process">Process data</button>
<button method="http://example.com/process">Process data</button>
formaction — The URL that processes the information submitted by the button. Overrides the action attribute of the button's form owner. Does nothing if there is no form owner. Source
formaction — The URL that processes the information submitted by the button. Overrides the action attribute of the button's form owner. Does nothing if there is no form owner.
<button submit="http://example.com/process">Process data</button>
<button formaction="http://example.com/process">Process data</button>