I know that in Safari on an iPhone you can detect the screens orientation and change of orientation by listening for the onorientationchange
event and querying window.orientation
for the angle.
Is this possible in the browser on Android phones?
Update
To be clear, I am asking whether the rotation of an android device can be detected by JavaScript running on a standard web page. It is possible on an iPhone and I wondered whether it could be done for Dndroid phones.
Thanks