hwg-techniques archives | Nov 2000 | new search | results | previous | next |
javascript and drop down formby "Kenny Lai" <klai(at)rs1winc.com> |
|
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