title: Hide anchor tag from url
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/10045303/how-to-hide-anchor-tag-from-url">How to hide anchor tag from URL</a>  </p>
  </blockquote>
  
  
  
  <p>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 : </p>
  
  <p>For example if I want to go from :</p>
  
  <p>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</p>
  
  <pre><code>    &lt;ul&gt;
          &lt;li&gt;&lt;a href="#"&gt;Menu1&lt;/a&gt;
              &lt;ul&gt;
                  &lt;li&gt;&lt;a href="page1.php#div_name"&gt;Submenu1&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="page2.php#div_name"&gt;Submenu2&lt;/a&gt;&lt;/li&gt; 
              &lt;/ul&gt;
          &lt;/li&gt;
      &lt;/ul&gt;
  </code></pre>
  
  <p>How can I fix this?</p>