Kann mir mal jemand erklären, weshalb das nicht funzt...?
HTML:
<html>
<head>
<title>Tarifrechner</title>
<script type="text/javascript">
<!--
function Rechner() {
var a=0.1919;
var b=0.1458;
var c=88.06;
var ErgebnisET=document.Formular.ET.value * a + c;
alert ("Das Ergebnis ist bei Eintarifnutzung beträgt " ErgebnisET " Euro pro Jahr");
}
//-->
</script>
</head>
<body>
<form name="Formular" action="">
<input type="text" name="ET" size="10">
<input type="button" value="Jahresrechnung ermitteln" onclick="Rechner()">
</form>
</body>
</html>