您的位置:首页 > 运维架构

window.open在当前页面打开网页

2007-04-18 10:27 423 查看
<head>
<script language="javascript">
function geturl(selurl)
{ if(selurl.value=='') return;
window.open(selsite.options[selsite.selectedIndex].value,"_self");
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body>
<select name="selsite" class="topsele" style="width:120px" onchange="geturl(this)">
<option value=" " selected>请选择站点</option>
<option value="http://www.sohu.com">www.wohu.com</option>
<option value="http://www.126.com">www.126.com</option>
</select>
</body>
</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: