下拉列表自动跳转

<form id="form1" name="form1" method="post" action="">
<select name="select" id="select" onchange="window.location=this.value;">
<option value="http://www.baidu.com">百度</option>
<option value="http://www.cnblogs.com">博客园</option>
</select>
</form>

posted @ 2018-08-23 22:57  黑旗君  阅读(373)  评论(0编辑  收藏  举报