Home › Forums › JavaScript › How to change my Javascript depending on screen width? › Re: How to change my Javascript depending on screen width?
June 28, 2011 at 12:46 pm
#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