Loading a page in a window that is already open

liunx

Guest
Ok... It has been a while since I have been back for some of the best advice on the net... Here is my dilema... <br />
<br />
I am opening a small popup window (no toolbars or anything), approx. 350x400. This window will have a bunch of text links on it. When you click one of the links the window automatically closes. I have all of this running ok. <br />
<br />
Now I want to have the new page load in the first window that the user click on the link that made the popup open. Does this make sense? <br />
<br />
So you open the page (will call this page1)... click on a link which opens a popup (called page2). You click on a link on page2... page2 closes automatically and the new page opens in page1. <br />
<br />
Anyone have some ideas? <br />
<br />
Scott<!--content-->The trick part is in keeping your site working for the 13% of people who do not use JavaSCript and for the countless throngs that block pop-ups. This will do the trick<br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"<br />
"http://www.w3.org/TR/html4/strict.dtd"><br />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><br />
<meta name="Content-Script-Type" content="text/javascript"><br />
<title>Page 1</title><br />
<div><a href=http://www.webdeveloper.com/forum/archive/index.php/"page2.html" onclick="window.open(this.href,'child', 'height=350,width=400'); return false">W3C</a></div><br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"<br />
"http://www.w3.org/TR/html4/strict.dtd"><br />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><br />
<meta name="Content-Script-Type" content="text/javascript"><br />
<title>Page 2</title><br />
<div><a href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.w3.org/" onclick="if (self.opener) {self.opener.location = this.href; self.close(); return false}">W3C</a></div><!--content-->
 
Back
Top