title: How to disable a click event handler for particular time?
body: <p>Only JavaScript, No jquery.</p>
  
  <p>Code goes like:</p>
  
  <pre><code>window.onload = addListeners;
  function addListeners(){
      for(var  i = 0 ; i &lt; document.getElementsByClassName('arrow').length; i++){
      if(window.addEventListener){
          document.getElementsByClassName('arrow') [i].addEventListener( 'click', func , false);
  
      }else{
          document.getElementById('arrow') [i].attachEvent('onclick' , func);
      }
  }
  }
  
  
  function func(){
  //Takes exactly 5 seconds to execute
  }
  </code></pre>
  
  <p>Now, I want to disable the 'click' for 5 seconds when the function 'func()' is running. And, then after the 'func()'  is completely executed, the click should again be enabled automatically.</p>
  
  <p>How to do this only using JavaScript?</p>