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

Q446 How can I close several windows that I opened with window.open?

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

Q446 How can I close several windows that I opened with window.open?

When you open them with window.open use different variables to hold a reference to each window, e.g.:

windowa = window.open(....);
windowb = window.open(....);
windowc = window.open(....);

And then when you want to close them:

windowa.close();
windowb.close();
windowc.close();

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.