You can only do that by keeping track of them when they're opened, such as:
Code:
var popups = new Array();
function openWindow(sURL, sName, sFeatures) {
var oPopup = window.open(sURL, sName, sFeatures);
popups.push(oPopup);
return oPopup;
}
Then use the openWindow() function whenever you want to open a new window. Each new instance will be saved in the popups array.
Nicholas C. Zakas
Author, Professional JavaScript for Web Developers (ISBN 0764579088)
http://www.nczonline.net/