<html> <head><title>Forms</title></head> <body> <script type="text/JavaScript"> function area(length, width) { return length * width; } function perimeter(length, width) { return 2*( length + width); } </script> <form name="Rectangle"> Enter the width and length then click <input type="button" name="answer" value="calculate" onClick='area()' ><br><br> Length<input type="text" name="length" value="0" ><br><br> Width<input type="text" name="width" value="0" ><br><br> Area<input type="text" name="area" value="0" ><br><br> Perimeter<input type="text" name="perimeter" value="0" ><br><br> </form> </body> </html>
<input id='lengthIn', type='number'/>
<input id='perimOut' disabled/>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)