window.onresize = function(){ console.log("resize"); }
alert("Your screen resolution is: " + screen.width + "x" + screen.height)