<html>
<head>
<title>background.html</title>
</head>
<script>
<!--
function bgchange(selobj) {
newcolor = selobj.options[selobj.selectedindex].text;
document.bgcolor = newcolor;
selobj.selectedindex = -1;
}
//-->
</script>
<body style="font-family:arial">
<b>changing background colors</b>
<br>
<form>
<select size="8" onchange="bgchange(this);">
<option>red
<option>orange
<option>yellow
<option>green
<option>blue
<option>indigo
<option>violet
<option>white
<option>pink
</select>
</form>
</body>
</html>