[Javascript] Timed demo doesn't work as expected, why?

David Dorward david at dorward.me.uk
Sun Mar 30 13:36:21 CDT 2008


On 30 Mar 2008, at 19:33, tedd wrote:
>> setTimeout is non-blocking. You have three counters counting down  
>> simultaneously, not one after the other.

>> I was afraid of something like that.
>
> How can I get it to be sequential?

Have one delayed function start the next countdown at the end of its  
run.

-- 
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/





More information about the Javascript mailing list