You are here: irt.org | FAQ | JavaScript | Window | Q829 [ previous next ]
Try:
<SCRIPT LANGUAGE="JavaScript"><!-- myHandle = window.open('mypage.htm','main','width=400,height=400'); if (!myHandle.opener) myHandle.opener = self; //--></SCRIPT>
Then in mypage.htm:
<SCRIPT LANGUAGE="JavaScript"><!-- window.opener.close() //--></SCRIPT>