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)
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 :-) )
Altruistic Gramps wrote:
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
Understand your point, however you are assuming this is for something I will be putting online.
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
North America
Europe, Middle East and Africa
Asia Pacific