Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

track window size jquery

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