Edit This Code:
See Result »
<!DOCTYPE html> <html> <body> <form action="http://www.w3schools.com/html/action_page.php"> First name: <input type="text" name="fname"><br> Last name: <input type="text" name="lname"><br> <input type="submit" value="Submit"><br> <input type="submit" formaction="demo_admin.asp" value="Submit as admin"> </form> <p><strong>Note:</strong> The formaction attribute of the input tag is not supported in Internet Explorer 9 and earlier versions.</p> </body> <!-- Mirrored from www.w3schools.com/html/tryit.asp?filename=tryhtml5_input_formaction by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 13 Mar 2016 11:02:55 GMT --> </html>
Result: