Forum Moderators: phranque
As you can tell, I know very little.
I did find some timers, but they were complete routines... and when I tried to "plug them in" into some existing scripts I have... I seem to have problems with subroutines inside of subroutines... or one function inside of another.
So... I am looking for a one line command that says "delay this many seconds before going to the next command."
Thanks,
Brett
However, this doesn't work exactly the way you described -- that is, it doesn't simply pause for a set period while going through a series of JavaScript commands.
Rather, whatever the "code" string is -- usually the name of a function defined earlier in the code -- JavaScript will delay the execution of that code for the amount of time specified by "delay" (in milliseconds).
Nevertheless, other commands that follow the setTimeout() line will continue to execute, so the effect is not the same as "don't do anything for xxx milliseconds".
I was hoping there was a way to:
execute statement1
count to 10000 (i.e. 10 seconds)
execute statement2
-Brett