编辑你的代码:
<!DOCTYPE html> <html> <body> <form action="/html5/tryit/demo_form"> First name: <input type="text" name="fname"><br> Last name: <input type="text" name="lname"><br> <input type="submit" value="正常提交"> <input type="submit" formtarget="_blank" value="提交到新窗口/页签"> </form> <p><strong>注意:</strong> input标签的formtarget属性不支持IE9和更早的IE更早版本.</p> </body> </html>
查看结果:
phpxuexi.net
- 亲自试一试