ok, allora faccio un esempio:
codice:
<html>
<head>
<script type="text/javascript">
me=100

function ciao(){
if (me>0) {
me -= 3;
}
}
</script>
</head>
<body>
ME : <script type="text/javascript">document.write(me);</script>/100
<input type="button" onclick="ciao();">
</body>
</html>
Vedete vorrei che cliccando il bottone non solo cambiasse il valore, ma anche la scritta genereata dal document.write .