<html> <head> <title>calculator</title> </head> <body> <form name="calculator" > <input type="textfield" name="x" value=""> <br><br> <input type="button" value="1" onClick="document.calculator.x.value+='1'"> <input type="button" value="2" onClick="document.calculator.x.value+='2'"> <input type="button" value="3" onClick="document.calculator.x.value+='3'"> <input type="button" value="+" onClick="document.calculator.x.value+='+'"> <br><br> <input type="button" value="4" onClick="document.calculator.x.value+='4'"> <input type="button" value="5" onClick="document.calculator.x.value+='5'"> <input type="button" value="6" onClick="document.calculator.x.value+='6'"> <input type="button" value="-" onClick="document.calculator.x.value+='-'"> <br><br> <input type="button" value="7" onClick="document.calculator.x.value+='7'"> <input type="button" value="8" onClick="document.calculator.x.value+='8'"> <input type="button" value="9" onClick="document.calculator.x.value+='9'"> <input type="button" value="*" onClick="document.calculator.x.value+='*'"> <input type="button" value="/" onClick="document.calculator.x.value+='/'"> <br><br> <input type="button" value="0" onClick="document.calculator.x.value+='0'"> <input type="reset" value="Reset"> <input type="button" value="=" onClick="document.calculator.x.value=eval(document.calculator.x.value)"> </form> </body> </html>
<script type="text/javascript"> function Add(x,y){} function Sub(x,y){} function Mult(x,y){} function Div(x,y){} </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)