Forum OpenACS Development: Re: Use DIV ID as anchor

3: Re: Use DIV ID as anchor (response to 2)
Posted by Brian Fenton on
Hi Malte,
I'm not quite sure what you're asking especially about DIVs but this location.replace works to jump to an anchor (I prefer it to focus as focus puts it just out of the line-of-sight:

<body onload="location.replace('#myAnchor');">

<a href='#' id="myAnchor"</a>

hope this helps