<!doctype html> <title>CACLULATOR</title> <style type="text/css"> body {background:Cyan;} #div{text-align:center;} #tr{width:500px;height:450px;} #int {text-align:left;width:100%;height:100%;font-size:20px;color:blue;} </style> </head> CALCULATOR </tr> <tr> <td><input id="int" type=button value="MC" OnClick="free.nint.value=''"></td> <td><input id="int" type=button value="MS" OnClick="free.nint.value=free.display.value"></td> <td><input id="int" type=button value="MR" OnClick="free.display.value=free.nint.value"></td> <td><input id="int" type=button value="M+" OnClick= "free.nint.value=(Number(free.nint.value))+(Number(free.display.value))"></td> </tr> # javascript-calculator simple calculator