The script I use....
Code:
<script language="JavaScript">
<!--
function goToURL(form)
{
var myindex=form.dropdownmenu.selectedIndex
if(!myindex=="")
{
//window.location.href=form.dropdownmenu.options[myindex].value;
//This is an alternative method you can use
var Target = "_blank";
window.open(form.dropdownmenu.options[myindex].value,Target,"");
}
}
//-->
</script>
I've got the top string commented out because I wanted new windows when selected. You can uncomment it and comment out the alternative method to open links in the same window.
and the form...
Code:
<form name="dropDownForm">
<select name="dropdownmenu" size="1" onChange="goToURL(this.form)">
<option value="url">Text</option>
<option value="url">Text</option>
</select>
</form>
This works perfectly with every browser as far as I know.