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

How can I know if a window is open or not?

Status
Not open for further replies.

Bibi

Programmer
Nov 8, 2000
10
CA
Hello!

How can I know if a window is open or not?

Thank you in advance!
 
I believe the syntax is:

windowName.isOpen

that returns a boolean value, so

if (windowName.isOpen){
do stuff if it is open} theEclipse
eclipse_web@hotmail.com
**\\||It was recently discovered that research causes cancer in rats||//**
 
The following is from the Netscape Javascript Reference at
The closed property is a boolean value that specifies whether a window has been closed. When a window closes, the window object that represents it continues to exist, and its closed property is set to true.

Use closed to determine whether a window that you opened, and to which you still hold a reference (from the return value of window.open), is still open. Once a window is closed, you should not attempt to manipulate it.
Mike Foster, moderator -> HelpFromTechs.com
 
Thank you very much!

I would like to open several windows with the same URL. How I do?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top