title: Orientation change in Android using javascript
body: <pre><code>document.addEventListener("orientationChanged", updateOrientation);
  </code></pre>
  
  <p>I am trying to call a function on <code>updateOrientation</code>, but the function is just not called. I am using javascript code for the same.</p>
  
  <p>Can anyone help me with <code>orientationChange</code> using javascript code.</p>
  
  <p>Thanks in advance.</p>