in reply to Anchor CGI output

You say you've tried doing it with JavaScript but no joy -- care to elaborate on how? I'm sure it can be done with a document.location.href='documentname.html#anchor'; statement or similar. Do that with an onLoad() handler and you can be sure it won't trigger too early. JavaScript has got anchors pretty much covered.

Also, why not put a META-refresh into the page which would do the same thing? Doesn't require JS and does the same job. The META is supposed to be in the head, so you've got the too-early thing but it's timeable, and I bet most browsers would happily follow it if it came up anywhere in the document anyway.
--

($_='
  jjjjjjuuuuuuuuusssssssssttttttttt annnnnnoootttttthhhhheeeeeerrrrrr
  pppeeeerrrrrrrrrrrrllllllllllllll haaaaccccccckkkkkkkeeeeeeeerrrrrr')
               =~y/[a-z]//s;print;