<html>
<body>
<h1>The button formaction attribute</h1>
<form action="https://www.w3schools.com/action_page.php" method="get">
<label for="fname">First name:</label>
<input type="text" id="fname" name="fname"><br><br>
<label for="lname">Last name:</label>
<input type="text" id="lname" name="lname"><br><br>
<button type="submit">Submit</button>
<button type="submit" formaction="../action_page2.html">Submit to another page</button>
</form>
</body>
<!-- Mirrored from www.w3schools.com/tags/tryit.asp?filename=tryhtml5_button_formaction by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:33:55 GMT -->
</html>