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

Q866 Why can't I close a popup window using its name?

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

Because you have to use the window reference and not its name.

Try:

<script language="JavaScript"><!--
windowHandle = window.open('http://www.irt.org/','windowName','width=640,height=480');

// and then later...

windowHandle.close();
//--></script>

©2018 Martin Webb