Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js window width change

function resize() {
  console.log("height: ", window.innerHeight, "px");
  console.log("width: ", window.innerWidth, "px");
}

window.onresize = resize;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #window #width #change
ADD COMMENT
Topic
Name
3+5 =