title: ExitFullScreen not working + anyway to keyboard press on button click?
body: <p>My Browser: Google Chrome Version 33.0.1750.154 m</p>
  
  <p>Script:</p>
  
  <pre><code>function exitFullscreen() {
      var element = document.documentElement;
      if (element.mozCancelFullScreen) {
          element.mozCancelFullScreen();
      } else if (element.webkitExitFullScreen) {
          element.webkitExitFullScreen();
      } else if (elem.exitFullScreen) {
          element.exitFullScreen();
      } else if (elem.msExitFullScreen) {
          element.msExitFullScreen();
      }
  }
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div class="menubutton" style="width: 100px;" onclick="exitFullscreen();"&gt;
      &lt;span class="menubuttontext"&gt;EXIT FULLSCREEN&lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>but when I press that div in fullscren mode nothing happens, did I do a typo, wrote the code totally wrong or is it not possible?</p>
  
  <p>Alternate Soultion? If that div button onclick can trigger a keyboard press escape key it can exit fullscreen too, or is this not possible?</p>