Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Changing something based on the browser window width Re: Changing something based on the browser window width

#67896
BaylorRae
Member

You might want to add this in case the browser is resized.

Code:
// On Resize
$(window).resize(function() {
if( $(this).width() < 900 ) { console.log("Less"); }else { console.log("More"); } });