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

Q428 How can I close the current window after opening a new popup window?

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

Q428 How can I close the current window after opening a new popup window?

Give the popup window a chance to load properly and then close the current window after a delay:

<SCRIPT LANGUAGE="JavaScript"><!--
window.open("mywindow.htm","newwindow","width=725,height=125");
setTimeout(\'window.close()\',5000);
//--></SCRIPT>

Feedback on 'Q428 How can I close the current window after opening a new popup window?'


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.