Q:

HTML Anchor tag issue

I have a piece of code like  below
<div>
<ul>
<li><a href="">Test1</a></li>
-------
-------
-------
<li><a href="">Test46</a></li>
</div>

It displays the html page with 46 links. The issue is when i scroll down and select the 46th or the ones just above this the page is going back to the top again. why is it happening so and is there any way to prevent it ?

A:

href is blank thats why its going at top. You can use this instead of keeping blank:
<a href="javascript:void(0)">Test46</a>

