We are developing a web application that will use 4 screens. Is there a way to count the number of screens?
Asked
Active
Viewed 2,067 times
1
-
Possible duplicate http://stackoverflow.com/questions/140462/testing-for-multiple-screens-with-javascript – Casper Beyer Apr 22 '14 at 06:09
1 Answers
0
This may help
Assuming rectangular arrangement of screen and all screen has same height and width.
/// total window width divided by single screen width
var h_screens = Math.round(window.outerWidth / window.screen.availWidth);
/// total window height divided by single screen height
var v_creens = Math.round(window.outerHeight / window.screen.availHeight);
var total_screens = h_screens * v_creens;
▆ ▆
▆ ▆4 = 2* 2;

Anoop
- 23,044
- 10
- 62
- 76
-
This doesn't work on Google Chrome. https://code.google.com/p/chromium/issues/detail?id=234132 – benjtupas Apr 23 '14 at 03:55