Skip to content

Instantly share code, notes, and snippets.

@bodokaiser
Last active December 16, 2015 05:19
Show Gist options
  • Save bodokaiser/5383717 to your computer and use it in GitHub Desktop.
Save bodokaiser/5383717 to your computer and use it in GitHub Desktop.
<html>
<head>
<title>Rechteckt</title>
<script language="Javascript">
function rechne()
{
lang=document.Rechteck.laenge.value;
breit=document.Rechteck.breite.value;
Flaeche=lang*breit;
alert("Die Flächenmaßzahl beträgt " + Flaeche)
}
</script>
</head>
<body text="#0000FF" bgcolor="#FFFF00" link="#FF0000" alink="#FF0000" vlink="#FF00000">
<br>
<br>
<br>
<br>
<form name="Rechteck">
<input name="laenge">
<br>
<input name="breite">
</form>
<a onclick="rechne()">rechne</a>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment