title: Calculating the time between two clicks in Javascript
body: <p>I want to calculate the time between two clicks of an attribute with javascript but I don't know how.</p>
  
  <p>For example;</p>
  
  <pre><code>&lt;a href="#"&gt;click here&lt;/a&gt;
  </code></pre>
  
  <p>if the user clicks more than once -let's say in 5 seconds- I want to display an alert. I'm using jQuery if that helps. I don't know much about javascript but I've been coding a small project in my free time.</p>