title: Detect rotation of Android phone in the browser with JavaScript
body: <p>I know that in Safari on an iPhone you can detect the screen's orientation and change of orientation by listening for the <code>onorientationchange</code> event and querying <code>window.orientation</code> for the angle.</p>
  
  <p>Is this possible in the browser on Android phones?</p>
  
  <p>To be clear, I am asking whether the rotation of an Android device can be detected by <strong>JavaScript</strong> running on a standard web page. It is possible on an iPhone, and I wondered whether it could be done for Android phones.</p>