title: Scroll with anchor without # in URL
body: <p>I need to scroll through a page using <code>anchor tag</code>. </p>
  
  <p>Right now I'm doing:</p>
  
  <pre><code>&lt;a href="#div1"&gt;Link1&lt;/a&gt;
  
  &lt;div id='div1'&gt;link1 points me!!&lt;/div&gt;
  </code></pre>
  
  <p>This works fine when I clicked on Link1, the page scrolls to the div with id "div1".<br>
  The point is, I do not want to change my URL which takes <code>#div</code> as suffix once I clicked on <code>Link1</code>.</p>
  
  <p>I tried with anchor href as</p>
  
  <pre><code>void(0);
  </code></pre>
  
  <p>and</p>
  
  <pre><code>location.hash='#div1';
  return false;
  
  e.preventdefault;
  </code></pre>
  
  <p>How to avoid changing the URL?</p>