3.2.0

Button Counter

Here is the code:

<html>
<head>
<script language = 'javascript'>

var Mix = 0;

function Login()
{
Mix ++;

window.document.form1.Box1.value = 'Clix: ' + Mix +
' times';

}
function Login2()
{
Mix --;

window.document.form1.Box1.value = 'Clix: ' + Mix +
' times';

}
function Login3()
{

window.document.form1.Box1.value = 'Clix: 0 times'

}
</script>

</head>
<Body>
<form name='form1'>
<input type = 'button' value = "Clix: 0 times" onClick = "Login()" name = 'Box1'><br><br>
<input type = 'button' value = "Up" onClick = "Login()">
<input type = 'button' value = 'down' onClick = 'Login2()'><br>
<input type = 'button' value = 'Reset' onClick = 'Login3()'>
</form>

</Body>
</html>
Jeremy
December 6,

This topic is archived.

See also:


Back to support forum