How to get the screen width and height in JavaScript

1 Answer

0 votes
document.write("Screen width: " + screen.width + ", height: " + screen.height)            
            
/*
run:
  
Screen width: 1920, height: 1200 
  
*/

 



answered Jul 13, 2015 by avibootz
edited Jul 13, 2015 by avibootz
...