var w = window.innerWidth;
var h = window.innerHeight;
if (window.screen.width >= 1024 && window.screen.height >= 768) {
alert('screen is ${window.screen.width} x ${window.screen.height}')
}
window.screen.height;
window.screen.width;
window.screen.width
//or just
screen.width