title: What is the proper use of the anchor tag?
body: <p>I've read how the anchor tag is holy, it should not be used with javascript:</p>
  
  <p><code>&lt;a href="javascript:(alert('no!'))"&gt;Popup&lt;/a&gt;</code></p>
  
  <p>that it should <strong>ONLY</strong> be used for a link to another page:</p>
  
  <p><code>&lt;a href="/grassIsAlwaysGreener.html"&gt;Take me over there&lt;/a&gt;</code></p>
  
  <p>So what is the proper use of the anchor tag with javascript?  Should I be using:</p>
  
  <p><code>&lt;a href="#" onclick="someJsFn();"&gt;Energize!&lt;/a&gt;</code></p>
  
  <p>or some other variant? I'm somewhat confused by different views on the subject. Also is it only SEO that I should be worried about if making the <code>href</code> a javascript piece? Or is it more of a proper web standards compliance deal?</p>
  
  <p>Thoughts? Hopefully I'm not the only one confused.</p>