Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

HTA question. HTML button click and count the clicks failed

$
0
0

<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?



Viewing all articles
Browse latest Browse all 15028

Trending Articles