how to detect the screen size in js code example
Example: get window resolution javascript
var clientWidth = document.documentElement.clientWidth;
$("h2").text(clientWidth);
var clientWidth = document.documentElement.clientWidth;
$("h2").text(clientWidth);