-
My DropDown Menu works for Explorer but not Firefox or Chrome
Hello,
I am trying to do a dropdown menu so that everytime you click change the selection, it automatically take you to the page. The code works for Explorer but not for Firefox or Chrome.
Please advise
Thanks
Here's the code before the head tag.
function MM_jumpMenuGo(objId,targ,restore){ //v9.0
var selObj = null; with (document) {
if (getElementById) selObj = getElementById(objId);
if (selObj) eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0; }
}
</script></head>
And the following code.
<form name="form1">
<select name="select1" size="1" style="background-color:#FFFFD7" onChange="MM_jumpMenuGo('select1','parent',0)">
<option value="http://www.mustangridgeapt.com/index.html" selected="selected">...</option>
<option value="Option 2">Option 2</option>
<option value="Option 3">Option 3</option>
<option value="Option 4">Option 4</option>
</select>
</form>
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks