Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

manipulating anchors in a different frame

Status
Not open for further replies.

UCENwebster

Programmer
Jun 7, 2002
18
US
I have two frames: one is a menu, and the other is a long text document with anchors. I want the links in the menu frame to control the position of the document in the text frame, using the anchors. I've tried this:

<a href=&quot;#anchorname&quot; target=&quot;textframe&quot;>Link</a>

but it doesn't work. Then I tried:

<a href=&quot;textdoc.html#anchorname&quot; target=&quot;textframe&quot;>Link</a>

That worked, but the text document refreshed itself every time, and it's a pretty big documnet, so the download time is forever. I want the text document to just move to the anchor without refreshing. Does anybody know how to do this?

thanks in advance
Webster
 

try this...

opener.location.href='#anchorname'

or a variation of...

this will reference the parent window from which the control window opened from, and move the page to the anchor mentioned...

hope that helps...

- spewn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top