title: Making a div flash just once
body: <p>I want to make my div flash or highlight just once on a particular click event. I tried the following code</p>
  
  <pre><code>function blink() {
     var f = document.getElementById('divId');
     setInterval(function() {
        f.style.display = (f.style.display == 'none' ? '' : 'none');
     }, 500);
  }
  </code></pre>
  
  <p>But I keeps blinking. I want to use just JavaScript.
  Any leads?</p>