Sadly, you have to use a window HANDLE to close it, not its NAME.

So in your case, you would need
  doit.close()

The tricky part is saving this handle when the window is created so that you
can use it when you need to.

  -----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