Is this browser-dependent javascript code? -


Why different output in IE and FF?
shown in IE: Hello and shown in FF: Hi

  var message = "hi"; SetTimeout (function () {warning (message);}, 10); SetTimeout (function () {message = "hello";}, 0);  

What is standaround? Which browser is doing right?

Note: If I convert from 10 to 11 FF, then it Hello

Firefox handles different small delays in IE There is a small delay time of 10 MMS in Firefox (which is not perfectly accurate). See more information notes.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -