View Full Version : anchor position in iframe from parent

10-22-2006, 04:20 PM
Hi everyone this is the delima i'm facing, trying to get a parent link to goto the anchor in the iframe window, not sure what i'm doing wrong:

<script type="text/javascript">
if (location.hash == "#anchorT") { src = "contribute.asp#anchorT"; }
if (location.hash == "#anchorB") { src = "contribute.asp#anchorB"; }
<a href='contribute.asp#anchorT'>first</a> &nbsp;|&nbsp; <a href='contribute.asp#anchorB'>last</a>

contribute.asp - iframe
response.write("<a name='anchorT' id='anchorT'></a>")
response.write("big paragraph of text")
response.write("<a name='anchorB' id='anchorB'></a>")

Thanks for the help!