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
It's know issue - see here
When page first loads the screen.width and screen.height are wrong. Try a timeout like this:
screen.width
screen.height
setTimeout(CheckResolution, 300);
Where CheckResolution is your function.
CheckResolution