编辑下面的代码:【加编码】
<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> <button type="submit" formtarget="_blank">Submit to a new window/tab</button> </form> <p><strong>Note:</strong> The formtarget attribute of the button tag is not supported in Internet Explorer 9 and earlier versions.</p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂