By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,381 Members | 1,626 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,381 IT Pros & Developers. It's quick & easy.

SetTimeout and SetInterval - since when?

P: n/a
Howdy All!

I would like to find since when did different versions of browsers and/or
JavaScript/JScript/ECMAScript support the SetTimeout and SetInterval
methods.. this is for compatibility reasons.

Thanks for any advice!

Rob
:)
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Robert Mark Bram" <re********@REMOVE.THIS.optusnet.com.au> writes:
I would like to find since when did different versions of browsers and/or
JavaScript/JScript/ECMAScript support the SetTimeout and SetInterval
methods.. this is for compatibility reasons.


The functions setInterval and setTimeout are not ECMAScript, but are
part of the (non-standardized) browser runtime environment.

From what I can see:
setTimeout : existed in Netscape 2!
setTimeout : introduced in Netscape 4 (same version as anonymous functions)
Both exist in Opera 4 too. I can't check older versions of IE, so I'll have
to rely on documentation. Microsoft says that setInterval was available in
IE4 and setTimeout in IE3.

I can't imagine any new browser not understanding both.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.