Count: Difference between revisions

From Cor ad Cor
Jump to navigation Jump to search
No edit summary
No edit summary
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">
Line 10: Line 11:
function updateMessage() {
function updateMessage() {
hits += 1;
hits += 1;
document.getElementById("counter").innerHTML = "Total:" + hits;
}
function clearHits() {
hits = 0;
document.getElementById("counter").innerHTML = "Total:" + hits;
document.getElementById("counter").innerHTML = "Total:" + hits;
}
}

Revision as of 20:31, 25 September 2013

Total: