<html><head> <title>Test HTML button</title></head><Script language="VBscript">
i = 1
Sub RunScript
DataArea.InnerHTML = "You clicked 'Count the clicks' button " & i & " times"
i = i + 1
End Sub</Script><body><input id=runbutton type="button" value="Count the clicks" onClick="RunScript"><br><span id=DataArea></span></body></html>Save the above HTA code to a .HTA file, run it. A HTA window appears and you click the [Count the clicks] button several times. The response counts your clicks. The count will be wrong. Some clicks are missing. Why?