开发者

How can I open a form result in a new window?

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;">
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜