Age-old? First that I've heard of it. Could you supply a demo? Anyways, if you are loading a new frameset into a frame or taking over the entire window with it, either way you should be able to target your named anchor in the the src attribute of the frame in question. If not, then this really is an age old question, just one no one ever asked me before. Example:
Code:
<frameset onload="nof5();" cols = "25%, 25%,*">
<frame name="myframe" src ="black.htm" />
<frame src ="black.htm" />
<frame src ="drop_target.htm#bob" />
. . .
Note: FF does have some problems with this but, they are minimal and probably the result of a bug as, it behaves as expected on reload and under other conditions (mostly once the page with the named anchor is cached). IE 7 and Opera 9.01 both behaved as expected regardless of conditions. If this slight problem in FF is enough to bother you, a script workaround is possible.
Added Later:
Here's a good fix for FF:
Code:
<script type="text/javascript">
function toname(){
if (location.hash.length>0&&document.getElementsByName(location.hash.replace(/#/,''))[0])
document.getElementsByName(location.hash.replace(/#/,''))[0].scrollIntoView()
}
if ( typeof window.addEventListener != "undefined" )
window.addEventListener( "load", toname, false );
</script>
Put that script on the page with the named anchor on it.
Bookmarks