JavaScript Calculadora


<html>

<head>
<link rel="stylesheet" href="js.css" TYPE="text/css">
<title></title>
</head>

<body TEXT="#000000" BGCOLOR="#ffffff" LINK="#000000" VLINK="#000000" ALINK="#000000">

<form>
<div align="center"><center><table border="1">
<tr>
<td bgcolor="black" colspan="4" align="center"><font size="-1" color="silver">JavaScript
Calculadora</font></td>
</tr>
<tr>
<td colspan="4"><input type="text" name="expr" size="20" action="calculate(this.form)"></td>
</tr>
<tr>
<td bgcolor="dimgray"><input type="button" value="C" onClick="clear_field(this.form)"></td>
<td bgcolor="dimgray"><input type="button" value="=" onClick="calculate(this.form)"></td>
<td bgcolor="dimgray"><input type="button" value="/" onClick="enter(this.form, divide)"></td>
<td bgcolor="dimgray"><input type="button" value="*" onClick="enter(this.form, multiply)"></td>
</tr>
<tr>
<td><input type="button" value="7" onClick="enter(this.form, 7)"></td>
<td><input type="button" value="8" onClick="enter(this.form, 8)"></td>
<td><input type="button" value="9" onClick="enter(this.form, 9)"></td>
<td bgcolor="dimgray"><input type="button" value="-" onClick="enter(this.form, minus)"></td>
</tr>
<tr>
<td><input type="button" value="4" onClick="enter(this.form, 4)"></td>
<td><input type="button" value="5" onClick="enter(this.form, 5)"></td>
<td><input type="button" value="6" onClick="enter(this.form, 6)"></td>
<td bgcolor="dimgray"><input type="button" value="+" onClick="enter(this.form, plus)"></td>
</tr>
<tr>
<td><input type="button" value="1" onClick="enter(this.form, 1)"></td>
<td><input type="button" value="2" onClick="enter(this.form, 2)"></td>
<td><input type="button" value="3" onClick="enter(this.form, 3)"></td>
<td bgcolor="dimgray" rowspan="2"><input type="button" value="E" onClick="calculate(this.form)"></td>
</tr>
<tr>
<td align="center" colspan="2"><input type="button" value=" 0 " onClick="enter(this.form, 0)"></td>
<td align="center"><input type="button" value=" . " onClick="enter(this.form, decimal)"></td>
</tr>
</table>
</center></div>
</form>
<!--webbot bot="HTMLMarkup" TAG="XBOT" StartSpan --></SCRIPT><!--webbot BOT="HTMLMarkup" endspan -->


<p align="center"><br>
</p>
</body>
</html>