Max: Addieren

Beitrag lesen

Danke nun klappt es.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Unbenanntes Dokument</title>

<script language="JavaScript">
function addition()
{var a,b, summe;
a=prompt("Zahl1");

b=prompt("Zahl2");
c=parseInt(a);
d=parseInt(b);
summe=c+d;

alert(summe);
}
</script>
</head>
<body onload="addition()">
</body>
</html>