<html>
<head>
<script type="text/javascript">
function seeColor(list) {
var newColor = (list.options[list.selectedIndex].value);
if (newColor) {
document.bgColor = newColor;
}
}
</script>
</head>
<body onload="seeColor(document.getElementById('colorsList'))">
<form>
<select name="colorsList" id="colorsList" onchange="seeColor(this)">
<option selected="selected" value="yellow">0</option>
<option value="black">A</option>
<option value="red">B</option>
<option value="pink">C</option>
<option value="blue">D</option>
</select>
</form>
</body>
</html>