title: Prevent an anchor from following href
body: <p>I have an anchor defined as follows - </p>
  
  <pre><code>&lt;a onClick="javascript:isLinked('');" class="..." href="..."&gt;&lt;img border="0" alt="" height="8" width="8" src="..."/&gt; &lt;u&gt;Add another&lt;/u&gt;&lt;/a&gt; 
  </code></pre>
  
  <p>The javascript function - </p>
  
  <pre><code>function isLinked(sId) {
          if(!sId)
          {
              alert(".....");
              return false;
          }
          else
              document.body.style.cursor='wait';                  
      }
  </code></pre>
  
  <p>Although I do see the alert being triggered on the click of the anchor,the links still follows the target url.<br>
  How can i prevent the link from following?</p>
  
  <p>The browser is IE8(if that is relevant)</p>