View Full Version : Link to <a name="x"> from outside iframe

05-10-2004, 12:42 PM
could be an easy one - done a search and found nothing.

I have a <a name="x"> on my parent/top level page

On that I have an iframe, within the iframe I have a link with <a href="#x"> and want it to jump to "x" on the parent/top level page.

How to?

Thanks in advance :thumbsup:

Death = $Mill

05-10-2004, 03:46 PM
Hey mate:
I am not the most expert but you can try this solution,
write the link in Iframe like this:

<a href="javascript:;" onclick="parent.location.hash='x';return false;">link to x</a>

for me works perfectly, good luck!!! :)


05-11-2004, 03:04 AM
<a href="URLofTopPage#x" target="_top">Link</a>