how to get a check if a screens dimensions changes js code example Example: js detect screen size change window.onresize = function(){ console.log("resize"); }