window.open on second monitor

南笙酒味 提交于 2019-12-07 02:13:15

问题


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');

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.

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

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


回答1:


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

please refer too this link. https://stackoverflow.com/a/17972796/2276894

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.



来源:https://stackoverflow.com/questions/21672094/window-open-on-second-monitor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!