Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    mak
    mak is offline
    New to the CF scene
    Join Date
    Jul 2002
    Location
    New York
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    changing contents under popup

    From my homepage I launch a full-screen popup window that sits on top of the browser, I want to write a script that will load a new page in the main browser that will be revealed when the popup window is closed. Amy help appreciated

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Posts
    1,404
    Thanks
    2
    Thanked 32 Times in 32 Posts
    You don't need a script to load the new page - just do it all from one .html file.

    <html>
    <head>
    <title>untitled</title>
    <script type="text/javascript" language="JavaScript">

    var mask = null;
    var HTML = '<body bgcolor="black" onblur="self.focus()"></body>';
    mask = open('javascript:opener.HTML','mask','fullscreen');
    mask.focus();

    onload = function() {
    if (mask && !mask.closed) mask.close();
    }

    </script>
    </head>
    <body>
    ......
    your page here
    ......
    </body>
    </html>


  •  

    Posting Permissions

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