D
DEEP 3z
Im currently learning JavaScript and im doing a tutorial from a magazine....
which doesnt work :/
Through elimination this is the code thats causing a problem... apparently
the browser is expecting a ; somewhere
funtion myupdate()
{
setTimeout("myupdate();" ,100);
if(mystate=="start")
{
mynow = new Date();
mywatch = mynow.getTime() - mystarted.getTime();
document.myform.mytime.value = mywatch/1000;
}
}
This is being called during onLoad as follows:
<BODY onLoad="myreset(); myupdate();">
If i remove the myupdate funtion declaration and call all works fine.
Any ideas?
Thanks
which doesnt work :/
Through elimination this is the code thats causing a problem... apparently
the browser is expecting a ; somewhere
funtion myupdate()
{
setTimeout("myupdate();" ,100);
if(mystate=="start")
{
mynow = new Date();
mywatch = mynow.getTime() - mystarted.getTime();
document.myform.mytime.value = mywatch/1000;
}
}
This is being called during onLoad as follows:
<BODY onLoad="myreset(); myupdate();">
If i remove the myupdate funtion declaration and call all works fine.
Any ideas?
Thanks