Count: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Text replacement - "<! —" to "<!--") |
||
(4 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
<FORM> | <FORM> | ||
<INPUT TYPE="button" VALUE="+" onclick="updateMessage()"> | <INPUT TYPE="button" VALUE="+" onclick="updateMessage()"> | ||
<INPUT TYPE="button" VALUE="-" onclick="clearHits()"> | |||
</FORM> | </FORM> | ||
<SCRIPT LANGUAGE="JavaScript"> | <SCRIPT LANGUAGE="JavaScript"> | ||
<!-- | <!-- | ||
var hits = 0; | var hits = 0; | ||
Line 13: | Line 14: | ||
} | } | ||
// --> | function clearHits() { | ||
hits = 0; | |||
document.getElementById("counter").innerHTML = "Total:" + hits; | |||
} | |||
// --> | |||
</SCRIPT> | </SCRIPT> | ||
</html> | </html> |
Latest revision as of 11:22, 10 December 2022
Total: