I have an asp apllication, that open severls windows on user demand, and on the main window i have a button to terminate the aplicaction, so what i want is to close a the main window and all the dependents windows.
The javascript command to close a window is window.close()
So, if you open a window like this:
var x = window.open('mySite.com');
Then, you close it like this:
x.close();
So, call a javascript function onClick for the button that terminates the application, and go through and use that command to close any windows you have opened.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.