In your example, 'winloading' is the HTML name of the window (suitable for
the A tag's TARGET attribute, for example), while 'doit' is a _javascript_
variable that references the window.

I believe the browser will let you close the window with _javascript_ (since
it was opened with _javascript_), but you'll have to get a reference to the
_javascript_ object that references the window first.  I know it's doable, but
I can't remember exactly how.  Probably a window.children array that
contains references to all windows opened by the current window or something
like that.

Cheers,
barneyb

> -----Original Message-----
> From: Daniel Farmer [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 01, 2004 2:02 PM
> To: CF-Talk
> Subject: _javascript_ window question
>
> 1st page
> ======
> I'm opening a window with one page... using window open. works fine.
>
> doit = window.open('loading.cfm', 'winloading', 'width=200,
> height=50, resizable=no, scrollbars=no' );
>
>
> 2nd Page
> ======
> Trying to close that opened window from another page.
>
> winloading.close();
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to