I found that _javascript_opened thes windows from another window.

And that I also found that win = open('',windowName); didn't get the handle
and ended opening a new window, reason was that it was case sensitive which
was stumping me as to why it was doing it.


Anyway it is sorted, this code did close the windows and did it without
asking if you wish to close this window or not. Which I have only ever seen
on the parent window and not children to the parent.

  _____  

From: J E VanOver [mailto:[EMAIL PROTECTED]
Sent: Saturday, 14 February 2004 8:33 AM
To: CF-Talk
Subject: RE: JS and Window.Close()


I'm not "Taco" but I can tell you that it's part of the _javascript_ security
model -- you can NOT close a window that you didn't open without the user
seeing a "Do you want to close this window" warning.

Beyond that, you DO need a window HANDLE, NOT the window Name.

The only way I know to get a window handle is as Taco showed, and that is to
save it when the window is created.

J
-----Original Message-----
From: Andrew Scott [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 11, 2004 8:58 PM
To: CF-Talk
Subject: RE: JS and Window.Close()

Taco,

I think I should have explained that _javascript_ doesn't open this window,
but I need to use _javascript_ to close it.

Regards
Andrew Scott
Technical Consultant

NuSphere Pty Ltd
Level 2/33 Bank Street
South Melbourne, Victoria, 3205

Phone: 03 9686 0485  -  Fax: 03 9699 7976

  _____

From: Taco Fleur [mailto:[EMAIL PROTECTED]
Sent: Thursday, 12 February 2004 3:21 PM
To: CF-Talk
Subject: RE: JS and Window.Close()

newWindow = window.open(............)

newWindow.close()

Taco Fleur
Blog  <http://www.tacofleur.com/index/blog/>
http://www.tacofleur.com/index/blog/
Methodology http://www.tacofleur.com/index/methodology/

Tell me and I will forget
Show me and I will remember
Teach me and I will learn

-----Original Message-----
From: Andrew Scott [mailto:[EMAIL PROTECTED]
Sent: Thursday, 12 February 2004 2:03 PM
To: CF-Talk
Subject: JS and Window.Close()

I am having trouble closing a window from another window, is this possible
to reference the name of this window to close it.

For example

windowName.Close()

Regards
Andrew Scott
Technical Consultant

NuSphere Pty Ltd
Level 2/33 Bank Street
South Melbourne, Victoria, 3205

Phone: 03 9686 0485  -  Fax: 03 9699 7976
  _____
  _____
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to