www.webdeveloper.com
Results 1 to 7 of 7

Thread: Anybody know how to open a new window so that it opens full screen?

  1. #1
    Join Date
    Feb 2003
    Location
    UK
    Posts
    34

    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.

    The ShirtBloke
    http://www.shirtbloke.com

  2. #2
    Join Date
    Nov 2002
    Location
    Dartmoor [Holiday]
    Posts
    2,382
    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
    "If youíre not using valid HTML, then you havenít created a Web page. You may have created something else, but it isnít a Web page." - Joe Clark

    Do something amazing (USA) | Make Poverty History

  3. #3
    Join Date
    Feb 2003
    Location
    UK
    Posts
    34
    Thanks - I'll try that.

  4. #4
    Join Date
    Feb 2003
    Location
    UK
    Posts
    34

    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.....
    http://www.easytoremember.pwp.blueyo...ders/index.htm
    and then click the fullscreen link

  5. #5
    Join Date
    Nov 2002
    Location
    Dartmoor [Holiday]
    Posts
    2,382
    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
    "If youíre not using valid HTML, then you havenít created a Web page. You may have created something else, but it isnít a Web page." - Joe Clark

    Do something amazing (USA) | Make Poverty History

  6. #6
    Join Date
    Feb 2003
    Location
    UK
    Posts
    34
    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?

  7. #7
    Join Date
    Feb 2003
    Location
    UK
    Posts
    34
    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.blueyo...ayer/index.htm

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles