posted 21 years ago
Most of you know that if you give an html object(an image for instance) an id value, you can use it in a link to load the page at that exact scroll position. for example:
<img id="thisImage" src="image.jpg">
<a href="thisPage.html#thisImage">Click me and you will scroll to the image</a>
---------------------------------------------
But I need the link to go back one page and to the top of that page.#top is a global id...no need to define it. So how do I write such a link?
This doesnt work:
<a href="javascript:history.back(1)#top">Go to the top of the last page you loaded</a>