can someone please tell me why the below function won't return to the function "countdown", after it reaches "reset" - I'm pulling my hair out (javascript newbie)
<form name=jj>
<input type=text name=kk value=5 size=4 >
</form>
<script>
var id;
function countdown()
{
jj.kk.value--;
if ( jj.kk.value == 0 )
{
self.clearInterval(id);
gogogo();
}
}
function reset()
{
jj.kk.value = jj.kk.value+10;
countdown();
}
function gogogo()
{
parent.middle.location.replace(' reset();
}
id = self.setInterval('countdown();',1000);
</script>
<form name=jj>
<input type=text name=kk value=5 size=4 >
</form>
<script>
var id;
function countdown()
{
jj.kk.value--;
if ( jj.kk.value == 0 )
{
self.clearInterval(id);
gogogo();
}
}
function reset()
{
jj.kk.value = jj.kk.value+10;
countdown();
}
function gogogo()
{
parent.middle.location.replace(' reset();
}
id = self.setInterval('countdown();',1000);
</script>