Hi,
I've added this code below to a MOSS 2007 web part inside OnPreRender() method.
if (!Page.ClientScript.IsClientScriptBlockRegistered("jump_to_anchor_JS"))
{
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "jump_to_anchor_JS", "window.location.hash=\"anchor\";",true);
}
The page loads, jumps to the specific anchor, then jumps back to the top of the page. This has been tested in IE8, Firefox, Chrome, and Safari with same behavior.
Any thought?