打开第二个监视器上一个新的浏览器页面 [英] Opening a new browser page on the second monitor

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

问题描述

好了,简单的情况。是否可以检测用户是否有从Web应用程序双显示器设置?
如果这是可能的,是有可能第二个显示器上打开一个子浏览器页面,所以新的窗口不会覆盖旧的?

Well, simple situation. Is it possible to detect if a user has a dual monitor setup from a web application? If this is possible, is it possible to open a child browser page on this second monitor, so the new window doesn't overlap the old one?

我之所以问:我工作的一个Web应用程序和在家里我有一个双显示器系统。当我去这个网站的管理部分,我希望它在pferably打开一个新的浏览器,$ P $其他桌面上。当然,我可能只是点击,然后将新的窗口,但是这样做似乎自动更多的乐趣。 : - )

Reason why I ask: I'm working on a web application and at home I have a dual-monitor system. When I go to the administration part of this site, I want it to open in a new browser, preferably on the other desktop. Of course, I could just click, then drag the new window, but doing this automatically seems more fun. :-)

别以为JavaScript有这个正确的功能。如何Java本身?

Don't think JavaScript has the proper functions for this. How about Java itself?

推荐答案

我不认为你可以直接检测到双显示器设置,但你可以通过看他们的屏幕分辨率可能做出很好的猜测,使用JavaScript的screen.width和screen.height。如果宽度与高度的比率是8:3,它的一个好机会,他们有2个标准4:3并排监视器侧。您可以为16做类似的计算:9或16:10

I don't think you'll be able to directly detect a dual monitor setup, but you can probably make a good guess by looking at their screen resolution, using javascript's screen.width and screen.height. If the ratio of the width to the height is 8:3, its a good chance they have 2 standard 4:3 monitors side by side. You can do a similar calculation for 16:9 or 16:10.

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

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