Script Categories













Calculators >>> Expression Solver.

Just enter a math expression (with +, -, *, and / signs) and this script will evaluate the expression for you.

Enter a math expression and click "Calculate" !

Equation Result

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">
/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
function calc(form) {
form.result.value=eval(form.expr.value);
}
// End -->
</script>
<i>Enter a math expression and click "Calculate" !</i>
<
br>
<
br>
<form>
<table border=3 cellspacing=2 cellpadding=5>
<tr>
<td
align=center><i>Equation</i></td>
<td
align=center><i>Result</i></td>
</tr>
<tr>
<td
align=center><input type=text name=expr size=15></td>
<td
align=center><input type=text name=result size=15></td>
</tr>
<tr>
<td
colspan=2 align=center><input type=button value="Calculate!" onclick="calc(this.form)"></td>
</tr>
</table>
</form>

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.



Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).

Bitcoin Dice - Crypto Casino


©