开发者

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

开发者 https://www.devze.com 2023-02-07 19:11 出处:网络
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.

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

精彩评论

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