在第二个监视器上打开window.open [英] window.open on second monitor

查看:114
本文介绍了在第二个监视器上打开window.open的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

window.open('branchMonitoring/', 'Testing Dual Monitor', 'resizable=1, scrollbars=1, fullscreen=0, height=200, width=650, screenX=0 , left=1280, toolbar=0, menubar=0, status=1');

我使用此代码在第二台监视器上打开了一个新窗口,但是新窗口仍在第一台监视器上打开,并且不能超出第一台监视器的边界.我试图将"left"更改为更高的值,但仍然没有运气.

I used this code to open a new window on second monitor but the new window still opens on first monitor and cannot exceed the first monitor's boundary. I tried to change "left" to a higher value but still no luck.

请帮助我的兄弟们.我正在使用最新的谷歌浏览器和Windows 8双显示器.

Please help me brothers. i am using latest google chrome browser and using windows 8 dual monitor.

请注意,使用FireFox浏览器时,此解决方案适用于我.但是我需要在chrome上使用它.

Please do note that this solution works for me when using FireFox browser. But I need to get it work on chrome.

推荐答案

经过大量研究,我发现了一些解决方法.有人说这是Chrome上的错误.

After doing many researches, I found some remedy. Some are saying that this is a bug on chrome.

也请参考此链接. https://stackoverflow.com/a/17972796/2276894

如果您要创建一个管理员/内部应用程序,也可以尝试 Chrome应用程序.它提供带有位置参数的功能,例如window.create().您可以控制所创建窗口的位置.请记住,您必须安装在用户浏览器中创建的 Chrome应用,就像在扩展程序中一样.

And also if you are targeting to create an admin/internal application, you can try Chrome App. It offers functions like, window.create() with position parameters. You can control the position of the windows you created. Remember that you have to install the Chrome App you created in user's browser, just like in extensions.

这篇关于在第二个监视器上打开window.open的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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