On Jun 9, 7:39 am, darwin liem <darwin.l...@yahoo.com> wrote: > function funcname1(){ /* do something here */ } > now we do something else like setTimeout to trigger the funcname1 > setTimeout("funcname1",1000); <-- this will delay until 1 second to trigger > the function
No it won't. This will do nothing, since you would need "funcname1()" to actually run the function. Or preferrably: setTimeout(funcname1,1000); Matt Kruse