<!DOCTYPE HTML>
<html>
<head>
<title></title>
<script>
function setLink() {
var linkBox = document.getElementById('linkBox');
var selected = linkBox.options[linkBox.selectedIndex].value;
switch (parseInt(selected)) {
case 1:
window.location = 'http://google.com';
break;
case 2:
window.location = 'http://bing.com';
break;
case 3:
window.location = 'http://yahoo.com';
break;
case 4:
window.location = 'http://ask.com';
break;
default:
break;
}
}
</script>
</head>
<body>
<select id="linkBox" onchange="setLink();">
<option></option>
<option value="1">Google</option>
<option value="2">Bing</option>
<option value="3">Yahoo</option>
<option value="4">Ask</option>
</select>
</body>
</html>