Salve Ragazzi Ho Creato Questo Codice HTML Ma Ho Riscontrato Che Il Contatore Quando Ricarico La Pagina Si Azzera. Vorrei Capire se è possibile che il contatore non si azzeri ma rimanga al numero di download effettuati.
ECCO IL CODICE
codice:
<body>
<script type = "text/javascript" >
var clicks = 0 ;
function onClick () {
clicks += 1 ;
document . getElementById ( "clicks" ). innerHTML = clicks ;
};
</script>
<button type = "button" onClick = " onClick () " > </ button>
<INPUT TYPE="button" VALUE="Download Gratuito" <a href="#" onClick="window.open('http://www.whiteflyrecords.com')" id =
<p> <a id = "clicks"> 0 </a> </ p>
</body>