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]

