what am i doing wrong ??? Guys can you please help?
THe laytout is correct but i cant get the results in the area and parimeter field.PLEASE
<html>
<head>
<title>Rectangle Calculator</title>
<script type=”text/javascript”>
function calcArea(1,w){
var area= 1*w
}
function calcPerim(1,w) {
var perimeter = 2
}
function calc(f){
var width = parseFloat(widthBox)
var length = parseFloat(lengthBox)
area= calcArea (length.value, width.value)
areaBox.value = area
perimeterBox.value = calcPerim(length.value,width.value)
}
</script>
</head>
<body>
<p><strong>Area and Perimeter Calculator</strong></p>
<form id=”calcForm”>
Enter the width of the rectangle:
<input type=”text” name “lengthBox” size=”6″ /> <br/>
Enter the length of the rectangle:
<input type =”text”name=”lengthBox” size=”6″/>
<p><input type= “button” name=”calcBtn” value=”Calculate”
onclick=”calc(document.calculatorForm)”/></p>
The area is:<input type=”text” name=”perimeterBox” size=”12″/>
</form>
</body>
</html>