Is the Sleep operation no longer used in VBscript?

Posted by Cheesus Toast on Stack Overflow See other posts from Stack Overflow or by Cheesus Toast
Published on 2012-10-27T00:19:39Z Indexed on 2012/10/27 11:01 UTC
Read the original article Hit count: 181

Filed under:

The "Sleep" command as stated in many places over the internet (including here on this forum) DOES NOT WORK. Is it now an obsolete command?

I am writing the VBScript code like this:

sub button1_onclick()
Wscript.Sleep 1000
div1.innerHTML = textbox1.value
end sub

It should wait 1 second and then execute that simple command. This is an utterly simple statement but it does not work. Plain and simple. It comes up with an error every time saying:

Object Required: 'Wscript'

© Stack Overflow or respective owner

Related posts about vbscript