PDA

View Full Version : Time intervals



viktor
05-30-2005, 10:44 PM
I need a small script (time interval script) that will execute another javascript when time elapses.
For example, after 30 seconds greeting script appears.

Any info, will be welcomed.

jscheuer1
05-31-2005, 03:59 AM
Let's say your greeting script is started by a function called greet(). Then just use this:

setTimeout=("greet()",30000);

30000 is 30 seconds counted in milliseconds, the time unit accepted by the setTimeout command.