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

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

You are here: irt.org | FAQ | JavaScript | Window | Q863 [ previous next ]

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

©2018 Martin Webb