Where else would the page go? If you link to a new page, that new page should start at the top. If you are talking about an anchor link tag being used for a javascript action on a page without loading a new page, something like so:
Code:
<a href="#" onclick="doSomething();">Do Something</a>
Do it like this:
Code:
<a href="#" onclick="doSomething();return false;">Do Something</a>
But certain free hosts, like Geocities will sometimes still reload the page, then you can do this:
Code:
<span onclick="doSomething();">Do Something</span>
And, if you like, the span can be styled to look like a link:
Code:
<span onclick="doSomething();"
style="color:blue;cursor:pointer;text-decoration:underline;">Do Something</span>
That is actually the preferred method for doing javascript actions on a page anyway.
If you are talking about something else, please explain it better, and:
Please post a link to the page on your site that contains the problematic code so we can check it out.
Bookmarks