harddrive
07-03-2003, 08:46 AM
I have back buttons in my page menus using
<a href="javascript:history.back(-1)">back</a>
I am also using a named anchor at the botom of the page.
<a href="#top">back to top></a>
Both work ok --- but if you return to the top of the page using the back to top button the "back" button needs to be clicked twice as the history is holding the page url twice the second time registering from the use of the "back to top" button.
How can I get the back to top button not to add the page url to the history list?
Thanks for any help.
<a href="javascript:history.back(-1)">back</a>
I am also using a named anchor at the botom of the page.
<a href="#top">back to top></a>
Both work ok --- but if you return to the top of the page using the back to top button the "back" button needs to be clicked twice as the history is holding the page url twice the second time registering from the use of the "back to top" button.
How can I get the back to top button not to add the page url to the history list?
Thanks for any help.