This has be absolutely baffled.
I made a function, and it's supposed to do some stuff and then start a setTimeOut function that will make the function do its stuff again and again. Here's a very simplified version of what I'm doing:
function doStuff()
{
x++;
form.text.value=x;
var timeout=setTimeOut("doStuff()",1000);
}
But for some reason, it gives the 'Error on Page.' message and says that an object was expected on the line with the setTimeOut function.
I can't figure out what I'm doing wrong. Please help. Thanks.
I made a function, and it's supposed to do some stuff and then start a setTimeOut function that will make the function do its stuff again and again. Here's a very simplified version of what I'm doing:
function doStuff()
{
x++;
form.text.value=x;
var timeout=setTimeOut("doStuff()",1000);
}
But for some reason, it gives the 'Error on Page.' message and says that an object was expected on the line with the setTimeOut function.
I can't figure out what I'm doing wrong. Please help. Thanks.