title: Close multiple windows in javascript
body: <p>I am using window.open in javascript to open multiple windows, the pop up opens same application, now I want to close multiple windows on close of any open window, I am using an array to store the window object, the problem is I am getting the updated array only on the last opened window, but not on the windows opened previously, so when I close the last window it closes all the windows but when I open any window in between it will not close all the windows because the updated array is not there on the page.</p>
  
  <p>Is there any way to close all windows that is to get the updated array on the previous pages,
  I have searched through the net but am not able to find the solution.</p>
  
  <p>Any help would be greatly appreciated</p>