Click to See Complete Forum and Search --> : Anybody know how to open a new window so that it opens full screen?
shirtbloke
08-29-2003, 04:07 PM
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.
The ShirtBloke
http://www.shirtbloke.com
AdamGundry
08-29-2003, 04:16 PM
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).
Adam
shirtbloke
08-29-2003, 05:16 PM
Thanks - I'll try that.
shirtbloke
08-31-2003, 08:24 AM
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.....
http://www.easytoremember.pwp.blueyonder.co.uk/ShirtBloke//games/space_invaders/index.htm
and then click the fullscreen link
AdamGundry
09-01-2003, 07:13 AM
AFAIK, the window should be closeable by keystrokes (e.g. Alt+F4), or you can create a close window link, like this:
<script type="text/javascript">
document.write('<a href="#" onclick="window.close()">Close Window</a>');
</script>
Adam
shirtbloke
09-01-2003, 01:14 PM
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?
shirtbloke
09-06-2003, 06:28 PM
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....
http://www.easytoremember.pwp.blueyonder.co.uk/ShirtBloke/games/full-screen-flash-games-player/index.htm