Calculator

Help

Type the formula in the form 27+3/4 into the field and press 'Go!'.
For more complex functions like sqrt use the command Math.sqrt(123).

Code

HTML

    <form name="Calculator">
            <input name="Display" size=30 maxlength=30>
            <input type=button value="    Go!    " onClick="Result()">
    </form>

Javascript

Requires one line of Javascript Code!!

    function Result()
    {
      window.document.Calculator.Display.value = eval(window.document.Calculator.Display.value);
    }