title: How to confirm navigation for a link in a href tag?
body: <p>I'm using simple links for an admin panel but in case of user accidently clicks on link for user deletion, there should be a confirmation pop-up for avoding this.</p>
  
  <p>Probably as you know a href tag's are not fully compatible with javascript. So, i have used span tag for "onclick" but that didn't went so well:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function confirm_click()
  {
  return confirm("Are you sure ?");
  }
  
  &lt;/script&gt;
  </code></pre>
  
  <p>Here is the html code for link:</p>
  
  <pre><code>   &lt;span onclick="confirm_click();"&gt;    &lt;a title="Delete User" href="http://www.google.com"&gt;&lt;i class="icon-remove-sign"&gt;DELETE&lt;/i&gt;&lt;/a&gt;&lt;/span&gt;
  </code></pre>