Chrome 中第二台显示器上的“window.open" [英] `window.open` on the second monitor in Chrome

查看:22
本文介绍了Chrome 中第二台显示器上的“window.open"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用 firefox 然后使用 window.open('blah.com','blah','left=-30,top=-300'); 时,弹出窗口打开在我的第一个显示器上方但在 chrome 中的第二个显示器中,弹出窗口仅在 left=0,top=0 处打开.chrome 这样做是有原因的吗?我将如何解决这个问题?

When I'm using firefox and then using window.open('blah.com','blah','left=-30,top=-300');, the popup opens in my second display above my first one but in chrome, the popup just opens at left=0,top=0. Is there a reason why chrome is doing this and how would I fix the problem?

谢谢!

推荐答案

这是 Chrome 在辅助显示器上打开弹出窗口时的错误.Chrome 的人似乎说这是一个安全问题(尽管这是一个安全问题超出了我的范围).

This is a bug in Chrome when the pop-up window is opened on the secondary monitor. The Chrome folks seem to say that this is a security issue (though how this is a security issue is beyond me).

现在,在不存在的辅助监视器上打开一个弹出窗口,我可以理解这是一个安全问题,但是......无论如何.

Now, opening a pop-up window on a NON-EXISTENT secondary monitor, I could understand is a security issue, but... whatever.

这里是关于此事的讨论链接:

Here's a link to a discussion on the matter:

https://code.google.com/p/chromium/issues/detail?id=137681

这篇关于Chrome 中第二台显示器上的“window.open"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆