setTimeout not working in windows script (jscript)

Posted by Sibo Lin on Stack Overflow See other posts from Stack Overflow or by Sibo Lin
Published on 2010-02-04T09:13:33Z Indexed on 2010/05/28 13:51 UTC
Read the original article Hit count: 293

Filed under:
|

When I try to run the following code in my program

setTimeout("alert('moo')", 1000);

I get the following error

Error: Object expected Code: 800A138F Source: Microsoft JScript runtime error

Why? Am I calling the wrong function? What I want to do is delay the execution of the subsequent function.

© Stack Overflow or respective owner

Related posts about jscript

Related posts about wsh