Reset JavaScript Counter?
<p>I am trying to program a counter into a website via JavaScript and have found exactly what I need here:
<a href="http://www.w3schools.com/js/js_timing.asp" rel="nofollow">http://www.w3schools.com/js/js_timing.asp</a></p>

<p>What I am trying to do is count down from 30 to 0. Once the counter reaches zero I want to display an alert. I have been able to get this to work. The only function that I cannot figure out is how to reset my counter back to 30 on a certain button push. I have tried code such as <code>document.gameForm.txt.value=30;</code> but for whatever reason 30 does not replace whatever text is currently in the box.</p>
