View Full Version : My DropDown Menu works for Explorer but not Firefox or Chrome

08-11-2009, 09:53 PM

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


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; }

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>