js get resolution of screen code example
Example 1: get window resolution javascript
var clientWidth = document.documentElement.clientWidth;
$("h2").text(clientWidth);
Example 2: get the size of the screen javascript
window.screen.height;
window.screen.width;