Use the following tests:

if (opener == closed) {
  // window is closed
} else if (opener == null) {
  // window has not opened
} else {
  // window is open
}



Regards: Ayudh

+--------------------------------------------------------------+
| Put money in your bank while you're on the road.             |
| Secure credit card payment by SMS messaging.                 |
| VeriPay mPOS from Xilo Online: http://www.xilo.com/mpos      |
+--------------------------------------------------------------+
----- Original Message ----- 
From: "Knott, Brian" <[EMAIL PROTECTED]>
To: "CFAussie Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, August 04, 2003 15:48
Subject: [cfaussie] RE: OT Javascript problem


> window.opener is true even after the window has been closed.  I think the
> child window keeps the attributes open. Any other ideas.
>
> Brian Knott
>
> -----Original Message-----
> From: Steve Onnis [mailto:[EMAIL PROTECTED]
> Sent: Monday, 4 August 2003 2:38 PM
> To: CFAussie Mailing List
> Subject: [cfaussie] RE: OT Javascript problem
>
>
> Brian
>
> You can call
>
> if (window.opener)
>
> to see if the main window is still open
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Knott,
> Brian
> Sent: Monday, August 04, 2003 2:36 PM
> To: CFAussie Mailing List
> Subject: [cfaussie] OT Javascript problem
>
>
> It is possible to check to see if an explorer windows is open.  I have a
> windows that opens a smaller window to display some information.  The user
> select some thing on the small window. The user clicks a link and it opens
a
> new page on the original window.  Now do I check to see if that original
> windows is open, its possible that the user has closed it , if so I want
to
> open another window.
>
> Brian Knott
>
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
[EMAIL PROTECTED]
>
> MX Downunder AsiaPac DevCon - http://mxdu.com/
>
>
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
[EMAIL PROTECTED]
>
> MX Downunder AsiaPac DevCon - http://mxdu.com/
>
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
[EMAIL PROTECTED]
>
> MX Downunder AsiaPac DevCon - http://mxdu.com/


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to