show current width based on window resize by hellosze July 28, 2015 JavaScript window.onresize = function(){ console.log(window.innerWidth); };