get screen resolution js code example
Example 1: javascript screen size
var w = window.innerWidth;
var h = window.innerHeight;
Example 2: get window resolution javascript
var clientWidth = document.documentElement.clientWidth;
$("h2").text(clientWidth);