how to get screen size in jquery code example
Example 1: jquery check if screen size
if ($(window).width() < 960) {
alert('Less than 960');
}
else {
alert('More than 960');
}
Example 2: get the size of the browser jquery
$(window).height();
$(window).width();
Example 3: get page resolution jquery
$( window ).width()
Example 4: get screen resolution jquery
window.screen.width