> If I close the main page, I want to close all child windows also. That
> means I need to keep track all handles of the child windows whenever I
> open a
> new window.
That won't work if user browses in main window.
IMO the best way is to simply add 'dependent=yes' to popup window
attributes.
Doesn't work everywhere, but when works - it works
BTW: never use href="#", put real address there and use return false in
onclick.
This will improve search engine visibility, ensure that windows open in new
window, links can be copied/bookmarked, etc.
--
* html {redirect-to: url(http://browsehappy.pl);}