Dear Bryan,

Your variable doit contains a direct reference to the window just created.
So invoke doit.close() and the window is gone. When you only want to remove
toolbars and stuff from a window, there are other tricks to prevent the
browser from throwing a message "do you want to close this window", but I
will explain it if you need it because it is about rewriting the window
object.

Micha Schopman

  _____  

From: Bryan Stevenson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 11:09 PM
To: CF-Talk
Subject: Re: _javascript_ window question

and the question is?? ;-)

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]

---------------------------------------------------------
Macromedia Associate Partner
www.macromedia.com
---------------------------------------------------------
Vancouver Island ColdFusion Users Group
Founder & Director
www.cfug-vancouverisland.com
  ----- Original Message -----
  From: Daniel Farmer
  To: CF-Talk
  Sent: Tuesday, June 01, 2004 2:02 PM
  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