View Full Version : changing contents under popup

07-04-2002, 12:40 AM
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

07-04-2002, 01:23 AM
You don't need a script to load the new page - just do it all from one .html file.

<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');

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

your page here