Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find dual monitor (secondary monitor) screen width and height? [closed]

How to find dual monitor (secondary monitor) screen width and height? Using javascript or jquery. Can anybody help?

like image 673
Pandiyan Avatar asked May 08 '15 12:05

Pandiyan


1 Answers

You can't detect a second monitor using Javascript, if you would get screen.width it would just show the total screen width of both monitors. You could however use window.innerWidth to get the size of the web page on the screen as mentioned here: Detect screen width for multiple monitors

like image 194
Mathias Avatar answered Sep 25 '22 10:09

Mathias