Why Does Settimeout Fire Twice In Chrome, But Not Ie Or Firefox?
Can someone tell me why the javascript function 'GenerateNewNumber' fires twice in Chrome, but not for IE or Firefox? Using Chrome 20.0.1132.57, IE9 and Firefox 13.
Solution 1:
setTimeout expects a function as first parameter:
setTimeout(function() { GenerateNewNumber(); }, 3000);
Post a Comment for "Why Does Settimeout Fire Twice In Chrome, But Not Ie Or Firefox?"