编辑下面的代码:【加编码】
<html> <body> <form action="demo-form.php" method="get"> First name: <input type="text" name="fname"><br> Last name: <input type="text" name="lname"><br> <button type="submit">Submit</button><br> <button type="submit" formaction="demo-admin.php">Submit as admin</button> </form> <p><strong>Note:</strong> The formaction attribute of the button tag is not supported in Internet Explorer 9 and earlier versions.</p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂