1

We are developing a web application that will use 4 screens. Is there a way to count the number of screens?

benjtupas
  • 610
  • 9
  • 25

1 Answers1

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