开发者

window.Open causes new window to appear behind parent

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜