title: Anchor tag with onclick and href='#' scrolls to top
body: <p>I have an anchor tag</p>
  
  <pre><code>&lt;a href="#" onclick="Register();" &gt;Register&lt;/a&gt;
  </code></pre>
  
  <p>If you don't have a href in you anchor, it can screw up some stuff, but I don't need to redirect, just call a js function. When this link is clicked however, the href="#" causes it to scroll the page to the top. How do I prevent that from happening?</p>