Page is a not externally linkable
- Hardware and OS Related Technologies
-- Website Technology Issues
---- Need Java script delay code


tedster - 8:54 pm on Jan 13, 2001 (gmt 0)


You probably can use setTimeout(code,delay) [developer.irt.org]

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".


Thread source:: http://www.webmasterworld.com/website_technology/190.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com