how to get dimension of the screen js code example
Example 1: get screen width javascript
window.screen.width
//or just
screen.width
Example 2: js know size of screen
alert("Your screen resolution is: " + screen.width + "x" + screen.height)
window.screen.width
//or just
screen.width
alert("Your screen resolution is: " + screen.width + "x" + screen.height)