Width variable
width = window.innerWidth ? window.innerWidth : $(window).width()
Quick/dirty and surefire way to grab width Javascript
Written by Chris Williams
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Javascript
Authors
Related Tags
#javascript
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#