You are here: irt.org | FAQ | JavaScript | Window | Q948 [ previous next ]
Use the onUnload event handler to close the popup window:
<script language="JavaScript"><!-- var popupHandle = window.open('http://www.irt.org/','windowName','width=640,height=480'); //--></script> <body onUnload="popupHandle.close()">