Web Analytics Made Easy -
StatCounter changing contents under popup - CodingForum

Announcement

Collapse
No announcement yet.

changing contents under popup

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new 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
    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('javascriptpener.HTML','mask','fullscreen');
    mask.focus();

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

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

    Comment

    Working...
    X