ˇ@

Home 

javascript Programming Glossary: longprimecalc

innerHTML can't be trusted: Does not always execute synchronously

http://stackoverflow.com/questions/16776606/innerhtml-cant-be-trusted-does-not-always-execute-synchronously

document.getElementById progress elm.innerHTML thinking longPrimeCalc You would expect that this code changes the text of the div.. code changes the text of the div to thinking and then runs longPrimeCalc an arithmetic function that takes a few seconds to complete... to complete. However this is not what happens. Instead longPrimeCalc completes first and then the text is updated to thinking after..