Close all pop-up windows [duplicate]
问题 This question already has answers here : Get list of opened popup windows (2 answers) Closed 6 years ago . I know there are many questions of this ilk with many answers. I know that I can use var popup = window.open(''); and can later use popup.close(); to close that window. However, is there a way to close all children without having to store the window.open result? That is, could I do window.open('1'); window.open('2'); window.open('3'); and then somehow do a global "Close" call that will