When does InnerHTML execute immediately?
I would expect this HTA code to print a to be replaced some time later by b . However, what it does is it prints nothing for some time, and then b . With the MsgBox line enabled, it does print a first. It seems that the execution of statusinfo.InnerHTML = "a" is postponed. Can any body tell me why this is? And how would I obtain the desired behavior (immediate refresh)? <SCRIPT LANGUAGE=VBScript> Sub doThis() statusinfo.InnerHTML = "a" 'MsgBox "stop" intensiveOperation statusinfo.InnerHTML = "b" End Sub Sub intensiveOperation() 'takes long End Sub </SCRIPT> <BODY> <button onclick="doThis">Run<