title: How to open a current window in Full Screen Mode on button click in IE8
body: <p>I have applied a jquery function in my MVC code for showing my current window in Full Screen Mode on button click. Here is the jquery for it :-</p>
  
  <pre class="lang-js prettyprint-override"><code>function FullScreen() {
      if ((document.fullScreenElement &amp;&amp; document.fullScreenElement !== null) || // alternative standard method
      (!document.mozFullScreen &amp;&amp; !document.webkitIsFullScreen)) { // current working methods
          if (document.documentElement.requestFullScreen) {
              document.documentElement.requestFullScreen();
          } else if (document.documentElement.mozRequestFullScreen) {
              document.documentElement.mozRequestFullScreen();
          } else if (document.documentElement.webkitRequestFullScreen) {
              document.documentElement.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);
          }
      } else {
          if (document.cancelFullScreen) {
              document.cancelFullScreen();
          } else if (document.mozCancelFullScreen) {
              document.mozCancelFullScreen();
          } else if (document.webkitCancelFullScreen) {
              document.webkitCancelFullScreen();
          }
      }
  }
  </code></pre>
  
  <p>I have called up this function on onclick event of  tag.
  With this I am able to open my window on button click in full screen mode on Chrome and Mozilla and also come out of the full screen mode on pressing ESC key. But in IE8 when i click on the button nothing happens. How can i make this function to work for IE8. 
  Any suggestions?</p>
  
  <p>Thanks.</p>