Hello ! I can’t find a mistake in this simple code!!
unfortunately id doesn’t do what I need
It supposed to receive 2 numbers and throw an alert with a multiplication of those numbers.
pls point me to a mistake
thanks!
<html>
<head>
<title> Test </title>
</head>
<body>
<h1 align= “center”> Calc </h1>
<br>
<script language=”JavaScript”>
function mult()
{
var a= document.Calc.li1.value;
var b= document.Calc.li2.value;
var c= (a*b);
alert(“the answer is :”+c);
}
</script>
<input type=”text” id=”li1″ name=”L1″>
<br>
<input type=”text” id= “li2″name=”L2”>
<br>
<input type=”submit” name=”sbm” value=”go” onclick= “mult()”>
<br>
</body>
</html>