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

Q863 How can I close the current window when opening a new popup window from a text link?

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

Q863 How can I close the current window when opening a new popup window from a text link?

Try:

<a href="#" onClick="window.open('http://www.irt.org','main','width=640,height=480');setTimeout('window.close()',1000)">irt.org</a>

This should give the new window just enough time to be created before closing the old one.

Feedback on 'Q863 How can I close the current window when opening a new popup window from a text link?'


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.