Chrischaaan: Abbildung

Beitrag lesen

<html>
<head>
<script>
function rechne()
{
 document.addition.ergebniss.value = (document.addition.zahl1.value*1) + (document.addition.zahl2.value*1);
}
</script>
</head>
<body>
<form name="addition">
<input type="text" name="zahl1"> + <input type="text" name="zahl2"><input type="button" value="=" onClick="rechne()"> <input type="text" name="ergebniss">
</form>
</body>
</html>