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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

detect open pop-up window and close

Status
Not open for further replies.

monstermash

Technical User
Aug 15, 2000
18
0
0
US
hello,

could someone tell me the script to detect if a pop-up window is open and to close it before opening another pop-up window? thank you very much.
 
How was the popup window created? If you created it in your code, you should have a window object that you can use, ie:
var mywindow = window.open(myurl)
.
.
mywindow.close()
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top