Button的背景顏色

下列程式碼複製至<body>程式碼</body>之間

<script language="JavaScript">
<!--
function backbs(clr) {
document.bgColor = clr
}

//-->
</script>
<p align="center"><input type="button" value="Aqua" onclick="backbs('aqua')"> <input type="button" value="Yellow" onclick="backbs('yellow')">
<input type="button" value="Khaki" onclicke="backbs('khaki')"> <input type="button" value="White" onclick="backbs('white')">
<input type="button" value="Gray" onclick="backbs('gray')"> <input type="button" value="Orange" onclick="backbs('orange')">
<input type="button" value="Lime" onclick="backbs('lime')"> <input type="button" value="Green" onclick="backbs('green')">
<input type="button" value="Blue" onclick="backbs('blue')"> <input type="button" value="Red" onclick="backbs('red')">