Anyone know what is the ECMA standard way of sleeping a JavaScript or doing other time events?

And which doco do you use? Deciphering what I find is a bear.