View Full Version : Pop up window links targeting parent browser


pulchritude
01-13-2003, 06:39 PM
I want a link in a pop up window to target the browser window that it popuped up from. Make sense?

Here's what I'm trying:

<a href="http://newlink.com" target="_parent">link</a>

But its just opening newlink.com up in the popup window itself. What am I doing wrong? I basically want to have a remote control for a part of my website.

Thanks for the help!

Ökii
01-13-2003, 07:56 PM
I'm not sure whether standard html has an identifier for the parent window. You might have to use javascript...

<a href="javascript://" onclick="window.opener.location.href = 'http://newlink.com';">link</a>

pulchritude
01-13-2003, 08:24 PM
0_o

That isn't working... I tried:

<a href="javascript://" onclick="window.opener.location.href = 'http://newlink.com';">link</a>

<a href="javascript" onclick="window.opener.location.href = 'http://newlink.com';">link</a>

and

<a href="javascript://" onclick="window.opener.location.href='http://newlink.com';">link</a>

But they either don't do anything when I click on them, or open up the directory named "javascript" (which doesn't exist!)

Am I doing something wrong?