I wrote a Javascript solution that helped me out and I thought I would share. I am actually using it with pretty url's (domain.com/parent/child#Anchor).
Use the attached JS file (remove the .txt extension). You can either reference the in your template or in specific pages. I did not include it in my Template. I am putting it in the Metadata field under the options tab on just the pages that I am using anchors, with the following code:
Code: Select all
{literal}
<__script__ src="/JS/anchor.js" type="text/javascript"></__script>
{/literal}
Code: Select all
<a href="javascript:anchor('#Top');">^Top</a>
I tested it in IE 6, IE 7, Avant 11, Netscape 8.1 (A little buggy), and Firefox 2