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.
Printable View
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.
Perhaps window.setTimeout("functionname(arguments)", delay in ms)?
Now, is setTimeout a proprietary extention, or ECMA standard?
I'm not sure, it was supported in JS 1.3...
Well, Netscape 4.6 supports it, so I wouldn't be too worried ;)
yeah, but that dosn't mean it is standard ;)
BTW, if you mean does it work only in IE or Netscape, it works in both.Quote:
Originally posted by CiberTHuG
Now, is setTimeout a proprietary extention, or ECMA standard?
Well, again, I don't care if it works in both, I don't care who does or doesn't support it. I will only use it if it is standard.
I don't understand why that concept is so hard to follow.
window.setTimeout() can't be a ECMA standard - it would have to a DOM or W3 standard, as ECMAScript doesn't define DOM objects. I'm not seeing any documentation, but it was JavaScript 1.0.