Click to See Complete Forum and Search --> : Using setTimeout


Webskater
10-20-2003, 04:43 AM
Can anyone tell me how to use setTimeout to delay a function occuring?
I want a function to start half a second after the event that calls it.
Thanks for any help.

At the moment I have it working by calling a function that calls the function I want to delay ie.

delaypopup = window.setTimeout('showhelp();', 500);

but I am wondering if you can do this without calling two functions.

Khalid Ali
10-20-2003, 09:35 AM
Thats the reasonable way provided by JS engien for to do iot,why whould youwant to re-invent the wheel????