[thelist] Parent and Child Windows

Simon Rigby Simon.Rigby at cityspace.com
Fri Feb 27 10:06:13 CST 2004

Hi Richard,

Try this in the close window href of your popup:
window.opener.location.href='Page C';window.close(); 



-----Original Message-----
From: Richard Morris [mailto:thelist at web-designers.co.uk] 
Sent: 27 February 2004 15:59
To: thelist at lists.evolt.org
Subject: [thelist] Parent and Child Windows

I'm sure I should know this!

When I open a pop-up 'help' window, I use this script in the Head

<script language="JavaScript"><!--
function openWin1(num) {
  n =
// -->

With this in the body:
<a href="javascript:openWin1(999)" onMouseOver="window.status='blah';
return true">More...</a>

Which then opens the pop-up called s999.htm. These usually have a <a
href="javascript:window.close()">Close this window</a> statement to
close them and if they have 'external' hyperlinks then I add a
target="_blank" to those URLs.

But what script do I need to be able to get the original window to
display the contents of an 'internal' hyperlink? i.e. Window 1 displays
Page A which spawns Window 2 Page B and clicking on a hyperlink here
loads Page C in Window 1 (and even closes Window 2?).

Many thanks!

* * Please support the community that supports you.  * *

For unsubscribe and other options, including the Tip Harvester and
archives of thelist go to: http://lists.evolt.org Workers of the Web,
evolt ! 

More information about the thelist mailing list