"Ivo" <> wrote in message
news:41b9f0a2$0$80128$...
> "Timo" asks
> > Is there any way to jump to an anchor in the current document without
> > affecting window.history?
>
> With the IE only method of scrollIntoView(), this is rather easy:
>
> <a href="#jump"
> onclick="if(document.getElementById(this.hash.repl ace(/^#/,''))){
> document.getElementById(this.hash.replace(/^#/,'')).scrollIntoView();
return
> false; }"
> >From here</a>
>
> ...
>
> <a id="jump">To here.</a>
> --
> Ivo
> http://4umi.com/web/links.htm
This shorter form seems to work too:
<a href="#jump"
onclick="document.getElementById(this.hash.replace (/^#/,'')).scrollIntoView(
)">From here</a>
Any reason not to use it?