<form id='myform'> <p>攝氏轉華氏溫度</p> <input type='text' id='degc1' value='40' size="5" />°C = <input type='button' value='按我看答案' onclick='check1()'> <input type='text' id='degf1' readonly='readonly' size="5" />°F <p>攝氏轉華氏溫度</p> <input type='text' id='degf2' value='40' size="5" />°F = <input type='button' value='按我看答案' onclick='check2()'> <input type='text' id='degc2' readonly='readonly' size="5" />°C </form>