Some code I wrote is not working. Here it is:
<html>
<head>
<title>ex 5</title>
<script language="javas cript">
function Average()
{
num_ein=window. document.Averag e.num1.value;
num_zwei=window .document.Avera ge.num2.value;
num_drei=window .document.Avera ge.num3.value;
alert(num_ein+n um_zwei+num_dre i);
}
</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.
<html>
<head>
<title>ex 5</title>
<script language="javas cript">
function Average()
{
num_ein=window. document.Averag e.num1.value;
num_zwei=window .document.Avera ge.num2.value;
num_drei=window .document.Avera ge.num3.value;
alert(num_ein+n um_zwei+num_dre i);
}
</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.
Comment