日期:2014-05-16  浏览次数:20448 次

跳转菜单——可不可以在新窗口打开?
<html>
<head>
<script   language= "JavaScript "   type= "text/JavaScript ">
<!--
function   MM_jumpMenu(targ,selObj,restore){   //v3.0
    eval(targ+ ".location= ' "+selObj.options[selObj.selectedIndex].value+ " ' ");
    if   (restore)   selObj.selectedIndex=1;
}
</script>
</head>

<body>

<script   language= "javascript ">


</script>
<form   name= "form1 ">
    <select   name= "menu1 "   onChange= "MM_jumpMenu( 'parent ',this,0) ">
        <option> 我的收藏列表 </option>
        <option   value= "http://www.sina.com.cn "> sina </option>
        <option   value= "http://www.sohu.com "> sohu </option>
        <option   value= "http://www.baidu.com "> baidu </option>
    </select>
</form>
<br> <br>
<form>
</form>
</body>
</html>


如何在新窗口打开页面?
急急急急!

------解决方案--------------------
看错了,以为你要本地打开……

<select name= "menu1 " onChange= "window.open(this.value) ">