<!DOCTYPE html>
<html>
<head>
<title>Octal to Decimal Converter</title>
</head>
<body>
<h1>Octal to Decimal Converter</h1>
<input id="octal-input" type="number" placeholder="Enter octal number">
<button onclick="convertOctalToDecimal()">Convert</button>
<input id="decimal-output" type="number" readonly>
<script>
function convertOctalToDecimal() {
const octalInput = document.getElementById('octal-input').value;
const decimalOutput = document.getElementById('decimal-output');
decimalOutput.value = parseInt(octalInput, 8);
}
</script>
</body>
</html>