Triggering a Value Change from a Pop-Up Menu
<html> <head> <title>Color Changer 2</title> <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=""></option> <option value="A">A</option> <option value="B">B</option> <option value="C">C</option> <option value="D">D</option> </select> </form> </body> </html>