Professional Documents
Culture Documents
Document
Document
Document
DOCTYPE html>
<html>
<head>
</head>
<body>
<!-- Add an onclick event to the button to call the calculateArea() function -->
<label for="result">Area:</label>
<!-- Disable the input field for the result so the user can't edit it -->
<script>
function calculateArea() {
document.getElementById("result").value = area;
</script>
</body>
</html>