javascript get size of element on screen code example
Example 1: get the size of the screen javascript
window.screen.height;
window.screen.width;
Example 2: js know size of screen
alert("Your screen resolution is: " + screen.width + "x" + screen.height)