Hide anchor tag from url
Question by soft_developer
Possible Duplicate:
How to hide anchor tag from URL
I have a menu which contains submenus, I want that onclick if each submenu, that will redirect me on a div of the php page :
For example if I want to go from :
Menu Menu1 –> Submenu1 I want that onclick of my sbmenu1 it redirect my on a div on page1#div_name without dipslay on the URL : www.page1.php#div_name, I just want www.page1.php
<ul>
<li><a href="#">Menu1</a>
<ul>
<li><a href="page1.php#div_name">Submenu1</a></li>
<li><a href="page2.php#div_name">Submenu2</a></li>
</ul>
</li>
</ul>
How can I fix this?