title: Accelerometer in a iOS Safari/WebApp in iPhone and iPad
body: <p>I have found a way of finding out the orientation of the device (portrait, landscape left, landscape right, upside down) via the listener</p>
  
  <pre><code> &lt;body onorientationchange="updateOrientation();"&gt;
  </code></pre>
  
  <p>and in the header</p>
  
  <pre><code>function updateOrientation() {
  
          switch(window.orientation) {
                  case 0:
                      // normal
                      // do some cool things...
                      break;
  
                  case -90:
                      // right
                      // do some cool things...
                      break;
  
                  case 90:
                      // left
                      // do some cool things...
                      break;
  
                  case 180:
                      // upside down
                      // do some cool things...
                      break;
          }
  }
  </code></pre>
  
  <p>but is it actually possible to find out the X/Y/Z values of the accelerometer in general?</p>