In my previous article (Java Script: Closing child window or tab on parent window closing or refreshing) I gave the sample source code for closing single child window on closing or refreshing parent window. In this article I am providing a sample java script code for closing multiple child windows. For closing multiple child windows, the window object should be assigned to an array variable which is common to both the opening and closing function. While closing the window the array should be iterated using for loop and close all the child windows.
Sample Source Code in the parent page for closing multiple child windows:
For closing only a single child window read my other article (Java Script: Closing child window or tab on parent window closing or refreshing).