Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

track window size js

var windowWidth = $(window).width();
$(window).on('resize', function() {
    windowWidth = $(window).width();
    console.log(windowWidth);
});
 
PREVIOUS NEXT
Tagged: #track #window #size #js
ADD COMMENT
Topic
Name
1+2 =