<!--ONUNLOAD POP-UP--> <!-- This goes in the HEAD of the main html file --> <script language="JavaScript" type="text/javascript"> <!-- Copyright 2002, Sandeep Gangadharan --> <!-- For more free scripts go to http://sivamdesign.com/scripts/ --> <!-- function unloader() { SW=window.open('http://www.your_domain.com/popup.html','NewWin','toolbar=no,status=no,width=350,height=135,scrollbars') SW.moveTo(190,240); //change the numbers at the left to adjust the top and left margins of //the new window } // --> </script> <!-- This goes in the BODY of the html file --> <body onUnload="unloader();"> <!-- Note: there is no script to be included in the pop-up window named 'unload.html' in this example. -->