title: Removing preventDefault and stopPropagation in javascript
body: <p>Hi i need to prevent the default action when the user clicked on a element and prevent its default action only for that time and need to do some other action. For which i used</p>
  
  <pre><code>document.body.onclick = function (e) {
      e.preventDefault();
      e.stopPropagation();
  }
  </code></pre>
  
  <p>But now the problem is, after i performing the above action i need to remove the <code>preventDefault</code> and <code>stopPropagation</code>, because none of the link(a href) is getting triggered after this. So how to undo this after performing it? Please note that it is a pure JavaScript code and im not using any library like jquery. So i can't use <code>.bind</code> and <code>.unbind</code>. Any idea on this would be greatly appreciated.</p>