javascript and drop down form

by "Kenny Lai" <klai(at)rs1winc.com>

 Date:  Wed, 15 Nov 2000 11:31:51 -0500
 To:  <hwg-techniques(at)hwg.org>
  todo: View Thread, Original
hey all,
i'm trying to pass the option values of the drop down form element 
using the onChange event, however, havent a little trouble doing so.
can anyone shed some light? here's what i have so far:

<SCRIPT LANGUAGE="JavaScript">
<!-- dropdown submit for Mainsilos
function formHandler(){
var URL = document.MainSilos;
window.location.href = URL;
// End -->
}
</SCRIPT>

<select name="MainSilos" onChange="formHandler()">
<option value="" selected>--</option>
<option value="1">Music</option>
<option value="2">Culture</option>
<option value="3">Politics</option>
</select>

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA