How to create a simple calculator with JS


<html><head>
<script type="text/javascript">
function calculate()
{
var chartPull = calc.chartPull.value;
var total = chartPull / 0.23;
calc.total.value = total;
return false;
}
</script></head>

<body>
<form name="calc" action="" method="post">
<input type="text" name="chartPull" size="10" value="0">
<input type="button" value="Calculate" onclick="calculate()" />
<input type="text" name="total" readonly="readonly" />
</form></body></html>
AO

Pharmacist interested in improving the health outcome for every single case he meets.

>