Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | JavaScript | Window | Q948 [ previous next ]

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

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?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.