Guest_imported
New member
- Jan 1, 1970
- 0
I've got an inactivity countdown javascript that I need to reset to the begining value if the user moves his/her mouse
<form name=jj>
<input type=text name=kk value=5 size=4 >
</form>
var id;
function countdown()
{
jj.kk.value--;
if ( jj.kk.value == 0 )
{
self.clearInterval(id);
gogogo();
}
}
function gogogo()
{
location.replace('}
id = self.setInterval('countdown();',1000);
</script>
I've tried to stick in
onMousemove="jj.kk.value = 5"; at various places, but it's just not working - anyone got any ideas?
Thanks
<form name=jj>
<input type=text name=kk value=5 size=4 >
</form>
var id;
function countdown()
{
jj.kk.value--;
if ( jj.kk.value == 0 )
{
self.clearInterval(id);
gogogo();
}
}
function gogogo()
{
location.replace('}
id = self.setInterval('countdown();',1000);
</script>
I've tried to stick in
onMousemove="jj.kk.value = 5"; at various places, but it's just not working - anyone got any ideas?
Thanks