<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script type="text/javascript">
function suanshu(){
var number=parseInt(document.getElementById('1').value);
number++;
document.getElementById('1').value=number;
}
</script>
<style type="text/css">
input[type=button]{
border: 0px;
background: #9A9AAE;
width: 40px;
height: 40px;
}
</style>
</head>
<body>
<input type="button" value="0" οnclick="suanshu()" id="1">
</body>
</html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script type="text/javascript">
function suanshu(){
var number=parseInt(document.getElementById('1').value);
number++;
document.getElementById('1').value=number;
}
</script>
<style type="text/css">
input[type=button]{
border: 0px;
background: #9A9AAE;
width: 40px;
height: 40px;
}
</style>
</head>
<body>
<input type="button" value="0" οnclick="suanshu()" id="1">
</body>
</html>