<!-- ONMOUSEOVER CLOSE POP-UP --> <!-- This goes in the HEAD of the html file that opens the popup --> <script language="JavaScript" type="text/javascript"> <!-- function popupWin() { SW=window.open('popup.html','NewWin','toolbar=no,menubar=no,location=no,resizable=no,status=no,width=350,height=135,scrollbars=no') // change the figures of width and height above to customize the size of the window to be opened. SW.moveTo(190,240); } // change the #s at the left to adjust the left and top margins respectively // --> </script> </head> <!-- This goes into the body of the file --> <a href="javascript:popupWin();">Click</a> to open small window. <!-- ======================================================================================= --> <!-- This goes in the HEAD of the popup file --> <script language="JavaScript" type="text/javascript"> <!-- Copyright 2005, Sandeep Gangadharan --> <!-- For more free scripts go to http://sivamdesign.com/scripts/ --> <!-- if (window.event) { window.captureEvents(Event.ONMOUSEOVER); } function closeSelf() { window.close(); } document.onmouseover = closeSelf; // --> </script>