Question : Drop Down Menu Selection dependent

I'm looking for a simple script for a drop down menu.
1) There are 3 Options. ONLY option 2 needs to open up a new window into a specified link. All other options must remain as static values when selected.

<OPTION value=1>1</OPTION>
<OPTION value=http://www.widgets.com>2</OPTION>
<OPTION value=3>3</OPTION>

Thanks!!!

Answer : Drop Down Menu Selection dependent

<script language='javascript'>
 function launchLink() {
    if (document.getElementById('optionList').selectedIndex==1) window.open('http://www.widgets.com');
 }
</script>
<select id='optionList' onchange='launchLink();'>
<OPTION value=1>1</OPTION>
<OPTION value=http://www.widgets.com>2</OPTION>
<OPTIO
N value=3>3</OPTION>
</select>
Random Solutions  
 
programming4us programming4us