把开始的
onChange="MM_jumpMenu('parent',this,0)"
改成
onchange="window.open(this.options[this.selectedIndex].value)"
onChange="MM_jumpMenu('parent',this,0)"
改成
onchange="window.open(this.options[this.selectedIndex].value)"
JS下拉菜单跳转示例
本文介绍了一种简单的JavaScript技巧,通过修改HTML选择框的onchange事件处理程序,实现当选择项发生变化时直接打开对应URL的功能。

被折叠的 条评论
为什么被折叠?