[Javascript] Close the pop-up

Muchacho, Laurent (TWIi London) LMuchacho at twii.net
Fri Sep 20 04:27:18 CDT 2002


Hi Jim 

Trey was right with 
<a href="#" onClick="window.close();">Close Window</a>
this will work to 
<a href="javascript:self.close();">Close Window</a>
but what you looking is the opener to come back in focus 
<a href="javascript:opener.focus();self.close();">Close Window</a>

Laurent

ps: the best will be a function 

<a href="javascript:void close_window()">Close Window</a>

function close_window(){
opener.focus();
self.close();
}

-----Original Message-----
From: Trey H [mailto:tutwabee at hotmail.com]
Sent: 20 September 2002 00:47
To: javascript at LaTech.edu
Subject: Re: [Javascript] Close the pop-up


Jim,
Just make a link like this:
<a href="#" onClick="window.close();">Close Window</a>
====================================
Trey Hunner: tutwabee at hotmail.com
website: http://www.websiter.biz
AIM, Yahoo, and MSN: tutwabee
ICQ: 155101326
====================================



>From: Jamesjackson73 at aol.com
>Reply-To: javascript at LaTech.edu
>To: javascript at LaTech.edu
>Subject: [Javascript] Close the pop-up
>Date: Thu, 19 Sep 2002 18:49:05 EDT
>
>People,
>I'm sure this is very simple, but not entirely sure....
>I want to put a link in a pop-up window, that will close that very same
>pop-up and return the user to the parent window....
>Thanks in advance....
>The code would be a great help....
>Cheers Jim






_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript


DISCLAIMER - The preceding e-mail message (including any attachments)
contains information that may be confidential, may be protected by the
attorney-client or other applicable privileges, or may constitute non-public
information.  It is intended to be conveyed only to the designated
recipient(s) named above.  If you are not an intended recipient of this
message, or have otherwise received it in error, please notify the sender by
replying to this message and then delete all copies of it from your computer
system.  Any use, dissemination, distribution, or reproduction of this
message by unintended recipients is not authorized and may be unlawful. The
contents of this communication do not necessarily represent the views of
this company.



More information about the Javascript mailing list