Entry
How to get anchors in frames to work in Netscape?
Apr 26th, 2008 20:33
dman, Taksh Verdhan, Sakir Ali, foo bar, David Sill, Vikram Singh, Dinh Son, Jason Benson, Rachit Bagda, Tony Hughes, Donna McGarrell, http://sturly.com
You must specify a target frame, it's also a good idea to specify the
name of the page itself.
Example you have two frames Nav & Main:
You want to hit two anchors in the Main frame from the nav frame.
Your
anchors are "top" & "bottom"
the code for that could be:
<a href="#top" target="main">top</a>
<a href="#bottom" target="main">bottom</a>
this will not always work though. Find the name of your target page
and use that before the anchor name & everythings great crossbrowser.
(This method may cause the page to reload, so it may not always be a
good idea with forms or complex data)
<a href="main.html#top" target="main">top</a>
<a href="main.html#bottom" target="main">bottom</a>
main.html is the name of the example target page.
jb
Edit: Please note, I did not supply any URLS as examples for this
answer. Some members seem to be abusing the FAQTs resource as an
advertising tool.