Skip navigation
trialbomfunknumber2
Currently Being Moderated

Open window full-screen

Jun 28, 2012 6:03 PM

How does one have a browser window resize full-screen on loading?

 

Not javascript.

 

Have done this before, just can't remember the exact code.

 

Something to the effect of:

window.resizeto (screen.availaheight, screen.availwidth)

 
Replies
  • Currently Being Moderated
    Jun 28, 2012 7:28 PM   in reply to trialbomfunknumber2

    window.resizeto (screen.availaheight, screen.availwidth)

    That happens to be a JS type instruction.

     

    As far as interfering with users' browser windows, DON'T! As a user, I want my settings to be respected.

     

    Gramps

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 29, 2012 2:27 AM   in reply to trialbomfunknumber2

    I am pretty sure, that you need JavaScript just to get close to a fullscreen solution. As far as I know, there isn't a way to fully implement a way, so it does it automaticly. The browsers have been down that road and it was a serious user experience problem. So, my best bet is not in HTML only, and not as soon as the window loads.

     

    There is ways of going into fullscreen, during events, and HTML5 new requestFullScreen() can make it easier in the future. See articles like http://www.longtailvideo.com/blog/26517/using-the-browsers-new-html5-f ullscreen-capabilities

     

    Please post if you are doing any progress on a HTML-only solution

     

    /ockley

     

    (on a side-note. The resizeto() method is taking width as the first argument, but i guess that was just a typo :-)  )

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 29, 2012 6:01 AM   in reply to trialbomfunknumber2

    If your visitors will be loading your page in a variety of browsers, you should be aware that many browsers simply ignore such resizing.

     

    If your page's functional environment is completely controlled (e.g., a kiosk) then you are pretty safe.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 29, 2012 6:25 AM   in reply to trialbomfunknumber2

    I believe that this is an IE-only in your situation. Some of the other browsers are having conditions that have to be met before allowing full-screen. Take a look at:

     

    https://developer.mozilla.org/en/DOM/window.resizeTo#Notes

     

    Where it doesn't work with tabs and windows that aren't created via window.open() A combination of the solution above and a requestFullScreen() may be my best guess.

     

    Sidenote: The solution presented is both JavaScript solutions - just for the record :-)

     

    Good luck

    /ockley

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points