`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:将嵌套元素定位在父元素边界之外一点 2022-09-07
- Flexslider 箭头未正确显示 2022-01-01
- Fetch API 如何获取响应体? 2022-01-01
- 400或500级别的HTTP响应 2022-01-01
- 使用RSelum从网站(报纸档案)中抓取多个网页 2022-09-06
- addEventListener 在 IE 11 中不起作用 2022-01-01
- 失败的 Canvas 360 jquery 插件 2022-01-01
- Quasar 2+Apollo:错误:找不到ID为默认的Apollo客户端。如果您在组件设置之外,请使用ProvideApolloClient() 2022-01-01
- 如何使用 JSON 格式的 jQuery AJAX 从 .cfm 页面输出查 2022-01-01
- CSS媒体查询(最大高度)不起作用,但为什么? 2022-01-01