Forum Moderators: open
<script language=JavaScript>
function Navigate() {
var number = NavSelect.selectedIndex;
location.href = NavSelect.options[number].value; }
</script>
<select name="NavSelect" onChange="Navigate(this.form)">
<option value="" SELECTED>Menu
<option value="http://www.google.com">Google</option>
</select> *EDIT*
Sorry, I got it.
[edited by: TheAlbinoEthiopian at 2:07 am (utc) on Feb. 10, 2007]
<option value="" selected="selected">Null</option> Also, your JavaScript isn't OK.
You need to either pass in the element being used (Navigate(thisSelect){var number = thisSelect.selectedIndex}), or use an id, and do a document.getElementById(). I made this mistake all the time, and I think I'm finally learning.