Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Closing several Windows

Status
Not open for further replies.

Albano

Instructor
Dec 11, 2000
221
PT
Hello,

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.

Tanks,

Albano
 
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.

:)
Paul Prewett
penny.gif
penny.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top