Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

targeting anchor in new frameset

using html to target named anchor in another frameset



3:37 pm on Nov 26, 2008 (gmt 0)

5+ Year Member


I hope someone can help.
I would like to know how to target a named anchor in another frameset - I need to be able to load a new frameset of 2 frames where one of the frames contains content scrolled to a specific anchor point.

I have an index page (index.html) with several links to anchors on other pages within the site.
Those pages must each load as part of a standard frameset.
The standard frameset is currently made up of 'fr_top' (a fixed navigation menu - "fr_top.html") and 'fr_main' (a scrollable content area - "other_pages.html").

Any guidance would be much appreciated.


9:31 pm on Nov 26, 2008 (gmt 0)

10+ Year Member

I think you should be able to do it by just adding the anchor to the URL: other_pages.html#myTarget


7:13 am on Nov 27, 2008 (gmt 0)

5+ Year Member

Hi Garann. Thanks for your input.
I understand how to link to a target in a frame but I need to always load the content page into a frame in a parent frame_set that includes fr_top.html (fr_top).

I am not sure if its a javascript thing or can be done with html alone, but I have these two approaches:
1.The coding required has to be on the index.html page (in the HEAD or in the URL) instructing all links to open into a parent frameset that includes fr_top.html and the linked content in the other frame.
2. the content pages themselves contain the coding in the HEAD that will automatically make them open into a frame within a parent frameset that includes fr_top.html.

Any ideas?


Featured Threads

Hot Threads This Week

Hot Threads This Month