[thelist] check for existence of window by name?
AtdtXav
atdtxav at yahoo.com
Mon Mar 25 11:27:01 CST 2002
Hi Andy, I have to wonder if you work in Farmington Hills, as I
worked for CPWR for three years. ;)
Will window.closed return true or false for a window that was
never opened? if true, that's exactly what I need. If false,
I'm afraid it's square one. maybe something as simple as "if
exist(QT)"? I'm new to the DOM, I'm afraid.
Scott
--- "Hardacker, Andrew" <Andrew.Hardacker at Compuware.com> wrote:
> <snip>
> What I'm trying to figure out is whether something like 'if
> window.name == QT' will work... only problem is I think that
> only refers to the current window, and I just want to know if
> it
> is open at all.
> </snip>
>
> Scott, have you tried checking the window's "closed" property?
>
> if (myWindow.closed)
> // open a new instance of myWindow
> else
> // update myWindow
>
> Andy Hardacker
__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/
More information about the thelist
mailing list