1个回答
展开全部
下面的value自行替换
<select name=name onchange="goto(this.value);">
<option value="a">a</option>
<option value="b">b</option>
<option value="c">c</option>
<option value="d">d</option>
</select>
<script>
function goto(vv)
{
if(vv=='a')
{
window.location.href="a.htm";
}else if(vv=='b'){
window.location.href="b.htm";
}else if(vv=='c'){
window.location.href="c.htm";
}else if(vv=='d'){
window.location.href="d.htm";
}
}
</script>
<select name=name onchange="goto(this.value);">
<option value="a">a</option>
<option value="b">b</option>
<option value="c">c</option>
<option value="d">d</option>
</select>
<script>
function goto(vv)
{
if(vv=='a')
{
window.location.href="a.htm";
}else if(vv=='b'){
window.location.href="b.htm";
}else if(vv=='c'){
window.location.href="c.htm";
}else if(vv=='d'){
window.location.href="d.htm";
}
}
</script>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询