Detecting the monitor resultion with javascript on a secondary monitor
I want to detect the monitor resolution with javascript. This works fine with screen.height and screen.width on the primary monitor. On a sec开发者_高级运维ondary monitor (extended desktop) this doesn't work! When I move the browser to the secondary monitor and call my javascript function with the resolution detection, screen.height and screen.width have still the resolution values of the primary monitor.
Does anybody know a solution for this problem?
Its my understanding that it will only return the values of the Primary Monitor. I believe a solution would have to come in at the browser level which would not be a Javascript based one.
精彩评论