The moment a user logs in application should get converted in full screen like we get after pressing f11
i m using this javascript function 
 
 
 <script type="text/javascript">
        function goFullscreen(element) {
            if (element.mozRequestFullScreen) {
                // This is how to go into fullscren mode in Firefox
                // Note the "moz" prefix, which is short for Mozilla.
                element.mozRequestFullScreen();
            } else if (element.webkitRequestFullScreen) {
                // This is how to go into fullscreen mode in Chrome and Safari
                // Both of those browsers are based on the Webkit project, hence the same prefix.
                element.webkitRequestFullScreen();
            }
            // Hooray, now we're in fullscreen mode!
        }
        //        var element = document.body; // Make the body go full screen.
        //        requestFullScreen(element);
    </script>
 
it is not working on load event of page.