Reset a timeout?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4075169/reset-javascript-counter">Reset JavaScript Counter?</a>  </p>
</blockquote>



<p>I'm trying to create a function that will trigger another function 5seconds after an event, as long as another event isn't triggered.</p>

<p>Whenever an event is triggered it sets var timeout to 5000. What is the best way to count down and trigger another function if this value isn't reset before it hist 0?</p>
