I have a form within an iframe on my web page. When the submit b开发者_运维百科utton is clicked, the result is viewed in the window that contained my web page.
How do I open the result in new window instead?Can you adjust the form html itself? <form target="_blank">
Try providing an onclick
function like this:
<input type='submit' onclick="this.form.target='_blank'; return true;">
精彩评论