I have a click counter on a button, but I want the number of clicks to be fixed, not to be deleted when a new visitor enters, if not, to continue showing the amount that is has done, without using mysql or php
code:
<button id="view">click</button>
window.onload = function(){
var contador = 0;
document.getElementById("view").onclick = function(){
contador++;
alert(contador);
}
}