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

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

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

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();

©2018 Martin Webb