JS如何跳转到一个新窗口???

来源:百度知道 编辑:UC知道 时间:2024/04/28 00:36:47
<select name="select1" id=select1 >
<option value="http://www.baidu.com">baidu</option>
<option value="http://www.google.com">google</option>
<option value="http://www.163.com">163</option>
</select>
<SCRIPT LANGUAGE="JavaScript">
<!--
(function a() {
var select1 = document.getElementById('select1');
select1.onchange = function () {
window.location = this.value;
}
})();
//-->
</SCRIPT>

<script type="text/JavaScript">
<!--
function jumpMenu(targ,selObj,restore){
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>
<body>
<form name="form1" id="form1">
<select name="menu1" onchange="jumpMenu('parent',this,0)">
<option value="跳转地址">标签</option>
<option value="跳转地址">标签</option>
<option value="跳转地址">标签</option>
</select>
</form>
</body>