`window.open` on the second monitor in Chrome(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"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Chrome 中第二台显示器上的“window.open"


基础教程推荐
- 如何使用 CSS 显示和隐藏 div? 2022-01-01
- Javascript 在多个元素上单击事件侦听器并获取目标 2022-01-01
- 每次设置弹出窗口的焦点 2022-01-01
- 什么是不使用 jQuery 的经验技术原因? 2022-01-01
- 为什么我在 Vue.js 中得到 ERR_CONNECTION_TIMED_OUT? 2022-01-01
- Node.js 有没有好的索引/搜索引擎? 2022-01-01
- 如何使用sencha Touch2在单页中显示列表和其他标签 2022-01-01
- 如何在特定日期之前获取消息? 2022-01-01
- jQuery File Upload - 如何识别所有文件何时上传 2022-01-01
- WatchKit 支持 html 吗?有没有像 UIWebview 这样的控制器? 2022-01-01