How to get the screen available width and available height in JavaScript

1 Answer

0 votes
document.write("Screen available width: " + screen.availWidth + 
                    ", available height: " + screen.availHeight)            
            
/*
run:
  
Screen available width: 1920, available height: 1160
  
*/

 



answered Jul 13, 2015 by avibootz

Related questions

...