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

来源:互联网 发布:淘宝女店主猝死艾珺 编辑:程序博客网 时间:2024/06/02 09:52

<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>
 

原创粉丝点击