Forums

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

Home Forums JavaScript How to change my Javascript depending on screen width? Re: How to change my Javascript depending on screen width?

#82514
jamygolden
Member

Check out resize().
And for the window width:

$(window).width();   // returns width of browser viewport

Add those two together with an if statement and you’ve got what you’re looking for :p