En helt vanlig miniräknare.
Detta sätter du efter <BODY> och före </BODY>: <CENTER> <FORM NAME="Calc" onSubmit="Calc.Input.value = eval(Calc.Input.value)" method="POST"> <TABLE BORDER=4> <TR> <TD> <INPUT TYPE="text" NAME="Input" Size="23"></TD> </TR> <TR> <TD> <INPUT TYPE="button" NAME="one" VALUE=" 1 " WIDTH="50" OnClick="Calc.Input.value += '1'"><!---- --><INPUT TYPE="button" NAME="two" VALUE=" 2 " WIDTH="50" OnCLick="Calc.Input.value += '2'"><!---- --><INPUT TYPE="button" NAME="three" VALUE=" 3 " WIDTH="50" OnClick="Calc.Input.value += '3'"><!---- --><INPUT TYPE="button" NAME="plus" VALUE=" + " WIDTH="50" OnClick="Calc.Input.value += '+'"><br><!---- --><INPUT TYPE="button" NAME="four" VALUE=" 4 " WIDTH="50" OnClick="Calc.Input.value += '4'"><!---- --><INPUT TYPE="button" NAME="five" VALUE=" 5 " WIDTH="50" OnCLick="Calc.Input.value += '5'"><!---- --><INPUT TYPE="button" NAME="six" VALUE=" 6 " WIDTH="50" OnClick="Calc.Input.value += '6'"><!---- --><INPUT TYPE="button" NAME="minus" VALUE=" - " WIDTH="50" OnClick="Calc.Input.value += '-'"><br><!---- --><INPUT TYPE="button" NAME="seven" VALUE=" 7 " WIDTH="50" OnClick="Calc.Input.value += '7'"><!---- --><INPUT TYPE="button" NAME="eight" VALUE=" 8 " WIDTH="50" OnCLick="Calc.Input.value += '8'"><!---- --><INPUT TYPE="button" NAME="nine" VALUE=" 9 " WIDTH="50" OnClick="Calc.Input.value += '9'"><!---- --><INPUT TYPE="button" NAME="times" VALUE=" x " WIDTH="50" OnClick="Calc.Input.value += '*'"><br><!---- --><INPUT TYPE="button" NAME="(" VALUE=" ( " WIDTH="50" OnClick="Calc.Input.value += '('"><!---- --><INPUT TYPE="button" NAME="zero" VALUE=" 0 " WIDTH="50" OnClick="Calc.Input.value += '0'"><!---- --><INPUT TYPE="button" NAME=")" VALUE=" ) " WIDTH="50" OnClick="Calc.Input.value += ')'"><!---- --><INPUT TYPE="button" NAME="div" VALUE=" / " WIDTH="50" OnClick="Calc.Input.value += '/'"><BR><!---- --><INPUT TYPE="button" NAME="clear" VALUE=" c " WIDTH="50" OnClick="Calc.Input.value = ''"><!---- --><INPUT TYPE="button" NAME="." VALUE=" . " WIDTH="50" OnClick="Calc.Input.value += '.'"><!---- --><INPUT TYPE="button" NAME="DoIt" VALUE=" = " WIDTH="100" OnClick="Calc.Input.value = eval(Calc.Input.value)"><br>