javascript how to get width of screen code example
Example 1: javascript screen size
var w = window.innerWidth;
var h = window.innerHeight;
Example 2: get screen width javascript
window.screen.width
//or just
screen.width
var w = window.innerWidth;
var h = window.innerHeight;
window.screen.width
//or just
screen.width