T
Timo
Is there any way to jump to an anchor in the current document without
affecting window.history?
Thanks
affecting window.history?
Thanks
Is there any way to jump to an anchor in the current document without
affecting window.history?
From here</a>
Ivo said:"Timo" asks
With the IE only method of scrollIntoView(), this is rather easy:
<a href="#jump"
onclick="if(document.getElementById(this.hash.replace(/^#/,''))){
document.getElementById(this.hash.replace(/^#/,'')).scrollIntoView(); return
false; }"
...
<a id="jump">To here.</a>
<snip>This shorter form seems to work too:
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.