Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get the width of the browser in javascript

var w = window.innerWidth;
var h = window.innerHeight;
var ow = window.outerWidth; //including toolbars and status bar etc.
var oh = window.outerHeight;
 
PREVIOUS NEXT
Tagged: #width #browser #javascript
ADD COMMENT
Topic
Name
2+7 =