0

Hello

I want to create a button that when the user clicks on it, the browser goes automatically fullscreen. It would be for mainly IE9 and I use for the rest of the browsers the HTML5 fullscreen API.

Thanks

5
Contributors
8
Replies
11
Views
4 Years
Discussion Span
Last Post by diafol
0

Like I mentioned this is for IE9. For FF, Chrome, etc. Im using that HTML 5 full screen API (which works so so; Tried it on a older version of Firefox and did not work)

Also it would be a button; Nothing automatic.

0

Without using HTML5 or something like Flash or Silverlight, I don't believe it is possible.

Nothing for IE9?

0

The exiting fullscreen doesnt work.

My two functions:

<script type="text/javascript">
function max()
{
    var docElm = document.documentElement;
        if (docElm.requestFullscreen) 
        {
            docElm.requestFullscreen();
        }
        else if (docElm.mozRequestFullScreen) 
        {
            docElm.mozRequestFullScreen();
        }
        else if (docElm.webkitRequestFullScreen) 
        {
            docElm.webkitRequestFullScreen();
        } 
        else if (docElm.msRequestFullScreen) 
        {
            docElm.msRequestFullScreen();
        } 
        else if (docElm.oRequestFullScreen) 
        {
            docElm.oRequestFullScreen();
        } 
        else
        {
            alert("I am 12 and what is this?");
        }
}

function min()
{

        if (document.fullScreen) 
        {
            document.cancelFullScreen();
        }
        else if (document.fullScreen) 
        {
            document.mozCancelFullScreen();
        }
        else if (document.fullScreen) 
        {
            document.webkitCancelFullScreen()
        }
        else if (document.fullScreen) 
        {
            document.msCancelFullScreen();
        } 
        else if (document.fullScreen) 
        {
            document.oCancelFullScreen();
        }  
        else
        {
            alert("I am 12 and what is this?");
        }
}





</script>

Unless Im missing something. Testing this in latest stable version of Firefox.

0

Hello

I want to create a button that when the user clicks on it, the browser goes automatically fullscreen. It would be for mainly IE9 and I use for the rest of the browsers the HTML5 fullscreen API.

On Win8 you are already on full-screen mode

0

I don't think IE9 can be made to do this, and unfortunately, F11 keypress can't be called programatically.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.