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 :-

```js
function FullScreen() {
    if ((document.fullScreenElement && document.fullScreenElement !== null) || // alternative standard method
    (!document.mozFullScreen && !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();
        }
    }
}

```

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?

Thanks.