コードが正しく実行されない理由について質問があります。これらのコマンドを適用するときは、できるだけ基本的にする必要があります。変換ボタンを押しても何もありません。そのためのコマンドも必要でしたか? それは宿題です。私は何時間もそれに手を出しています。
編集***
<html>
<head>
<script type="text/javascript">
<script>
function Convert()
onclick= document.getElementById('Convert')
var years = document.getElementById("year").value;
var days = document.getElementById("days").365.25 * years;
var hours = document.getElementById("hours").(365.25 * 24) * years;
var minutes = document.getElementById("minutes").(365.25 * 24 * 60) * years;
var seconds = document.getElementById("seconds").(365.25 * 24 * 60 * 60) * years;
document.getElementById('days').value = days;
document.getElementById('hours').value = hours;
document.getElementById('minutes').value = minutes;
document.getElementById('seconds').value = seconds;
});
</script>
</head>
<body>
Years: <input type='text' id='years' />
<button id='Convert'onclick= "Convert()" value= "Convert"/> Convert </button>
Days: <input type='text' id='days' />
Hours: <input type='text' id='hours' />
Minutes: <input type='text' id='minutes' />
Seconds: <input type='text' id='seconds' />
</body>
</html>