<html>
<head>
<title>Test</title>
<script language="JavaScript" type="text/javascript">
<!--
function Rechne(Operation) 
{
  var Ergebnis = eval(Operation);
  alert("Ergebnis: " + Ergebnis);
}

//-->
</script>
</head>
<body>
<form name="Formular">
<p>Geben Sie eine Rechenaufgabe (z.B. 8*5) ein:</p>
<input type="text" name="Eingabe">
<input type="button" value="OK"
onClick="Rechne(document.Formular.Eingabe.value)">
</form>
</body>
</html>