[thelist] closing a window from another document
Chris Evans
chris at fuseware.com
Mon, 20 Dec 1999 10:04:26 -0500
If you open a window using Javascript ( and know its name) you can then
close it from another window by using name.close(). You don't have to open
a new window to regain control of it.
Chris Evans
chris@fuseware.com
http://www.fuseware.com
AIM: ChrisEvns
-----Original Message-----
From: thelist-admin@lists.evolt.org
[mailto:thelist-admin@lists.evolt.org]On Behalf Of Jeff
Sent: Friday, December 17, 1999 9:19 PM
To: thelist@lists.evolt.org
Subject: Re: [thelist] closing a window from another document
jeremy,
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: From: Jeremy Ashcraft <ashcraft@13monkeys.com>
:
: I'm stumped. I'm opening up a small "please wait....." window, then
: submitting a form to a CGI script. I want to be able to have the
: resulting document from the CGI script close the window I popped up from
: the previous page. I know it can be done, but I can't remember how.
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
chris has already described the difficulty of what you want to do so i'll
try to explain just exactly how you're going to go about capturing that
window back and closing it from the new document.
the good thing is since you opened the window you know the "name" of that
window as set with the second argument to the window.open() method. so, by
simply executing a blank window.open with the same name as the target value
then you can once again regain control of the window and close it.
i've set up an online example so you can see how it works. you can view it
here:
http://members.evolt.org/jeff/code/capture_window/
good luck,
: jeff.howden
: web.development.professional
: evolt.org.member
:
: the.best.looking.developers.on.the.net
:
: http://evolt.org/
: jeff@members.evolt.org
_______________________________________________________
unsubscribe+options: http://lists.evolt.org/mailman/listinfo/thelist
tip harvester: http://lists.evolt.org/harvest/
email archive: http://lists.evolt.org/archive/
http://evolt.org/ Workers of the Web, evolt !