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