Disabled the a tag (link) by using javascript

Does anyone how can I disabled the a tag (link) by using javascript?


<div class="sub-heading">
  Contact Details &nbsp; &nbsp; &nbsp; 
  <a href="./cust_add_edit_customer.php?action=edit_customer_details&amp;cust_code=12761">  
    <img class="imgVA editIconPad" src="../images/edit0.gif" 
      alt="Edit Contact Details" border="0" width="20" height="17">

I hope to disabled this a tag after a button been clicked.

76 thoughts on “Disabled the a tag (link) by using javascript”