faganj 0 Newbie Poster

The problem that I'm having can be seen on this test page:

http://science.nature.nps.gov/im/1test.cfm

We have a new mandatory Cold Fusion server-side redirect process for linking to external sites. We have some off-site links that use javascript drop-down menus that required a javascript work-around to work correctly with IE.

The javascript and drop-down list basically works on IE, Firefox, and Opera, but not in Chrome.

I also need the new page to open in a new window or tab (like target="_blank") for all browsers.

Any suggestions for getting it to work in Chrome and to open in a new window or tab in all browsers?

Code is below. Thanks!

<script language="javascript" type="text/javascript">
<!--- use browser sniffing to determine if IE or Other (ugly, but required) --->
var isOther, isIE = false;
if(navigator.userAgent.indexOf('Internet Explorer')){isIE = true;}
if(navigator.userAgent != indexOf('Internet Explorer')){isOther = true;}


<!--- define for all browsers --->
function goto(url){location.href = url;}

<!--- re-define for IE --->
if(isIE){  
	function goto(url){    
		var referLink = document.createElement('a');    
		referLink.href = url;    
		document.body.appendChild(referLink);    
		referLink.click();  
	}
}

//-->
</script>


<select style="font-size:11px; width:300" onChange="goto(this.options[this.selectedIndex].value)">
   <option selected value="http://science.nature.nps.gov/im/units/sien/monitoring/Lakes/Lakes.cfm">Please select a link</option>	
   <option value="http://www.nps.gov/yose/naturescience/aquatic-resources-man-plan.htm">Yosemite high-elevation aquatic resources</option>
   <option value="/im/assets/intercept/?addr=http://waterdata.usgs.gov/nwis/">USGS National Water Information System</option>
   <option value="/im/assets/intercept/?addr=http://cdec.water.ca.gov/">California Dept of Water Resources Data Exchange Center</option>
   <option value="http://www.nature.nps.gov/water/">NPS Water Resources Division</option>
</select>