Anybody know how to open a new window so that it opens full screen?
Anybody know how to open a new window so that it opens full screen? (the equivalent of pressing F11 in windows). I want to open a shockwave game that opens fullscreen with no toolbars etc.
IIRC, you add 'fullscreen' to the third parameter string of window.open(), for example:
window.open('http://www.example.com', '', 'fullscreen');
Be aware that this will open a regular popup window in many browsers (non-IE).
Didn't work as intended
Tried inserting 'fullscreen' to the third parameter string of window.open(), and it worked - the popup opens fullscreen.
The problem is, there's no way to resize or close the window (at least in IE6). In fact the only way out of the problem was by pressing the Windows key to bring up the bottom toolbar - still can't close the popup though.
Is it because I'm linking direct to a flash file rather than a html page? Or have I just discovered a new way for those people who write advertising popup windows to annoy the rest of us with an unignorable popup?
The page is at.....
and then click the fullscreen link
AFAIK, the window should be closeable by keystrokes (e.g. Alt+F4), or you can create a close window link, like this:
document.write('<a href="#" onclick="window.close()">Close Window</a>');
The only problem with putting a close window link means that I'll no longer be able to link directly to a .swf file - I'll need to put a html page up there.
Ah well....nothings ever easy is it?
Finally got it all to work.
That close window code wouldn't work as I ended using a framed page, and it only closes the bottom frame. Very confusing.
Thanks for your help Adam.
Try it out.
Have a full screen retro game at....
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)