Hi there Markxxx,
try it like this...
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">
//<![CDATA[
var df;
window.onload=function() {
df=document.forms[0];
df[0].onchange=function(){
gone(this.value);
}
df[1].onclick=function(){
gone(df[0].options[df[0].selectedIndex].value);
}
}
function gone(url){
location.href=url;
}
//]]>
</script>
</head>
<body>
<form action="#">
<div>
<select>
<option value="http://www.cnet.com">Cnet</option>
<option value="http://www.cnn.com">CNN</option>
<option value="http://www.geocities.com">Geocities</option>
</select>
<input type="button" value="Go!"/>
</div>
</form>
</body>
</html>
coothead
Bookmarks