Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Close the pop-up


  • From: javascript@xxxxxxxxxx (Muchacho, Laurent (TWIi London))
  • Subject: [Javascript] Close the pop-up
  • Date: Fri, 20 Sep 2002 10:27:18 +0100

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@xxxxxxxxxxx]
Sent: 20 September 2002 00:47
To: javascript@xxxxxxxxxx
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@xxxxxxxxxxx
website: http://www.websiter.biz
AIM, Yahoo, and MSN: tutwabee
ICQ: 155101326
====================================



>From: Jamesjackson73@xxxxxxx
>Reply-To: javascript@xxxxxxxxxx
>To: javascript@xxxxxxxxxx
>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@xxxxxxxxxx
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.