i used screen.width to get the width of the browser. it worked fine with iphone safari but didn\'t work in android phone(it showed 800 width for android browser).
Is the
I find that using window.outerWidth gives the correct value. Tested this using BrowserStack android emulators.
window.outerWidth