Count: Difference between revisions

From Cor ad Cor
Jump to navigation Jump to search
No edit summary
m (Text replacement - "<! —" to "<!--")
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<html>
<html>
<DIV ID="counter">Number of clicks = 0</DIV>
<DIV ID="counter">Total: </DIV>
<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: