Some code I wrote is not working. Here it is:
<html>
<head>
<title>ex 5</title>
<script language="javascript">
function Average()
{
num_ein=window.document.Average.num1.value;
num_zwei=window.document.Average.num2.value;
num_drei=window.document.Average.num3.value;
alert(num_ein+num_zwei+num_drei);
}
</script>
</head>
<body>
<form name="Average">
<input type="text" name="num1"><br>
<input type="text" name="num2"><br>
<input type="text" name="num3"><br>
<input type="button" name="button1" value="Click for
Average" onClick=Average()>
</form>
</body>
</html>
Internet Explorer says that the button object does not support the property or
method. Please help.