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

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -