title: jQuery: Easy way to check if a href attribute is valid
body: <p>I am looking for a pretty easy way to check when somebody clicks a link that it's valid.</p>
  
  <p>Good</p>
  
  <pre><code> &lt;a href="index.html"&gt;some link&lt;/a&gt;
  </code></pre>
  
  <p>Bad:</p>
  
  <pre><code>&lt;a href="#"&gt;some link&lt;/a&gt;
  &lt;a href="javascript:void(0);"&gt;some link&lt;/a&gt;
  </code></pre>