javascript function screen width code example
Example 1: jquery check if screen size
if ($(window).width() < 960) {
alert('Less than 960');
}
else {
alert('More than 960');
}
Example 2: device width js
window.screen.availWidth
if ($(window).width() < 960) {
alert('Less than 960');
}
else {
alert('More than 960');
}
window.screen.availWidth