- <!DOCTYPE html>
- <html>
- <body>
- <form action="demo_form.asp">
- First name:
- <input type="text" name="fname" /><br />
- Last name:
- <input type="text" name="lname" /><br />
- <input type="submit" value="Submit as normal" />
- <input type="submit" formtarget="_blank" value="Submit to a new window/tab" />
- </form>
- </body>
- </html>
- //该片段来自于http://www.codesnippet.cn/detail/201120137361.html
来源: http://www.codesnippet.cn/detail/201120137361.html