I am making a simple game in HTML / Javascript where every time a button or hyperlink is clicked, it adds 1 to the counter
<script type="text/javascript">
var count = 0;
function countClicks() {
count = count + 1;
document.getElementById("p2").innerHTML = count;
}
</script>
My question is, is there a way to add a checkmark (Ascii # 10004) equal to the number in the counter. I'm sure this is easy to solve, but I have never used Javascript, and it seems to be the easiest language to do this. I appreciate any help provided
source
share