title: Should I use on click instead of href?
body: <p>I have few items in my navigation bar side and horizontal. Each item holds the link for different page. I have read few articles about href attributes. There is a lot of different opinions on what should be used especially in HTML5 since href is not required. I would like to hide the link if possible. One of the options is to use onClick function. Also there is big debate on if there should be javascript or # sign. For example:</p>
  
  <p>Option 1</p>
  
  <pre><code>&lt;a href="#" onclick="someFunction(e)"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>or Option 2</p>
  
  <pre><code>&lt;a href="javascript:void(0);" onclick="someFunction(e)"&gt;
  </code></pre>
  
  <p>I was wondering if this is the best way to approach this. Also I saw few options where JQuery is involved but I'm not sure if that would be the best option. if anyone can help with this please let me know. I just want to use something that is well tested and will be a long term solution. Thanks in advance.</p>