Hi!
I am not sure, but I would try just window name without property
if (parent)
{do not do anything}
else
{do something}
or even with some forms or frames
if (parent && parent.form1)
For jumping between windows focus is very useful.
parent.focus
Hope it helps
Greg
-----Original Message-----
From: sjkirky@b... [mailto:sjkirky@b...]
Sent: Friday, September 21, 2001 11:04 AM
To: JavaScript HowTo
Subject: [javascript_howto] JavaScript Window Detection
Hi all,
I have an application page which needs to check for the presence of a
external window. If this window exists, I don't want the application to do
anything. However, if the window is not present, we need to open it. I
also need to permit the user to navigate backwards and forwards in the
parent window.
Fairly obvious stuff, only I can't seem to access the window.closed
property without actually opening the window first.
Any deep-thought or enlightenment would be appreciated.
SamK