<!-- REDIRECT ON POP-UP CLOSE --> <!-- This goes in the HEAD of the html file --> <script language="JavaScript" type="text/javascript"> <!-- Copyright 2005, Sandeep Gangadharan --> <!-- For more free scripts go to http://sivamdesign.com/scripts/ --> <!-- function smallwin() { SW=window.open('win.html','NewWin','toolbar=no,menubar=no,location=no,resizable=no,status=no,width=350,height=135,scrollbars=no') // change the name, features and the figures of width and height above to customize the popup window. SW.moveTo(190,240); // change the #s at the left to adjust the left and top margins where the popup would open } // --> </script> </head> <!-- This goes into the body of the file --> <a href="javascript:smallwin();"> Click</a> to open small window. </p> <!-- ======================================================================================= --> <!-- This goes in the HEAD of the html file that will be the popup window --> <script language="JavaScript" type="text/javascript"> <!-- Copyright 2005, Sandeep Gangadharan --> <!-- For more free scripts go to http://sivamdesign.com/scripts/ --> <!-- var redirectTo = "http://www.the_domain.com/"; // change the URL at left to the URL/page you wish to // redirect the viewers once the popup is closed. function redirectMain() { window.opener.location.href = redirectTo; } // --> </script> <!-- This is the script to be included in the BODY tag of the html file that will be the popup window --> <body onunload="redirectMain()">