Click to See Complete Forum and Search --> : Opening links in another browser window???


Metjhs23
02-03-2003, 06:29 PM
On my site I've got a sitemap that opens in a new 250x400 window. How do I get the links in the window to open back in the full size browser frame that it popped up from? I've tried innumerable combinations of targets, frame names etc. Any advice?

pyro
02-03-2003, 06:39 PM
You are probably looking for the window.opener command. Something like this maybe...

Click <a href="#" onClick="javascript:window.opener.location='yourlink.htm';return false">this</a> link

pyro
02-03-2003, 07:01 PM
Edited the above to work...

Charles
02-03-2003, 08:59 PM
That should be, however:

<a href="http://www.w3.org/" onclick="top.opener.location = this.href; return false">W3C</a>

Metjhs23
02-03-2003, 10:02 PM
thanks, that works.

on some pages the popup link is in an inline frame. Both these methods open the page into that little menu inline frame. Is there any way to load the page from the sitemap over the entire page, inline frames and all?

Stefan
02-04-2003, 03:18 AM
Originally posted by Metjhs23
Is there any way to load the page from the sitemap over the entire page, inline frames and all? [/B]

target="_top"

Metjhs23
02-04-2003, 08:40 PM
i added that code and it's still opening in little top iframe

Stefan
02-05-2003, 06:20 AM
Originally posted by Metjhs23
i added that code and it's still opening in little top iframe

Exactly what code are you using currently?

Post it.