Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q948 How can I close my popup window when the location of the main window changes?

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()">

Feedback on 'Q948 How can I close my popup window when the location of the main window changes?'

©2018 Martin Webb