Hallo, hoffe ihr könnt mit hiermit helfen:
<html>
<head>
<title>
</title>
</head>
<body>
<script language="JavaScript">
<!--
var zahl1 = prompt ("Bitte geben Sie hier eine Zahl ein.", "");
var zahl2 = prompt ("Bitte geben Sie hier eine zweite Zahl ein.", "");
if (zahl1>zahl2) {document.write (zahl1 + " ist die größere Zahl.")};
else (zahl1<zahl2) {document.write (zahl2 + " ist die größere Zahl.")};
//-->
</script>
</body>
</html>
Danke schonmal!
LG