Forum OpenACS Development: Re: Use DIV ID as anchor

Collapse
2: Re: Use DIV ID as anchor (response to 1)
Posted by Tom Jackson on
Considering the fact that not even <a id= ..> will work, div probably isn't going to work either:


<A HREF="#what">What is Linux ACPI?</A>
....
<A NAME="what">

Collapse
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
Brian