Forum Moderators: open

Message Too Old, No Replies

Parent Browser Windows

Enabling a parent window to be opened in a link.

         

karen_pope

3:18 pm on Feb 25, 2002 (gmt 0)



I have a pop-up window with a link to a new page. I would like the link to open in the parent window rather than the same or a new one!

Could anyone provide some help with this!

Thanx

wardbekker

3:21 pm on Feb 25, 2002 (gmt 0)

10+ Year Member



window.opener.location = 'someurl';

karen_pope

3:45 pm on Feb 25, 2002 (gmt 0)



does that go in the link for the new page to be opened in the parent browser:

eg
<a href="window.opener.location = 'new link';">

legster

4:19 pm on Feb 25, 2002 (gmt 0)

10+ Year Member



I asked the same question. It was answered here in this thread:
[webmasterworld.com...]

That should answer your second quuestion. :)

karen_pope

11:51 am on Feb 26, 2002 (gmt 0)



Thanx very much legster!

Works wonderfully!

tedster

12:07 pm on Feb 26, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I like to give the spiders a link trail to follow, so my anchor tags in the pop-up page look more like this:

<a href="newlink.html" onClick="window.opener.location='newlink.html';return false;">