开发者

window.Open causes new window to appear behind parent

开发者 https://www.devze.com 2023-01-23 21:10 出处:网络
I was wondering if anyone knew of a way to prevent IE fr开发者_Python百科om popping up child windows behind the parent. Have you tried giving the new window focus?

I was wondering if anyone knew of a way to prevent IE fr开发者_Python百科om popping up child windows behind the parent.


Have you tried giving the new window focus?

newwindow = window.open(...);
if (window.focus) {
    newwindow.focus();
}
0

精彩评论

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

关注公众号