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>
<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>
相关文章推荐
- window.open打开页面窗口大小调整及置于页面最前面
- 【转】iframe和父页,window.open打开页面之间的引用
- [JavaScript] 解决window.open()打开同一个URL没能在两个网页中打开
- ff4.0中无法用window.open打开网页
- HTML:模拟链接被按下,在新标签页打开页面,不使用window.open(可能被拦截)
- window.open打开的页面向父页面传值
- js关闭 window.open 打开的页面
- 个人笔记 js 01 js里window.open打开的子页面调用父页面的function
- window.open打开页面居中显示的示例代码
- js window.open打开新窗口原页面出现[object window]解决办法
- JS中用window.open()方式打开,使新页面全屏、居中的代码
- js window.open 打开页面并居中
- 水滴石穿之页面遮罩层实现、向window.open()打开的窗口POST数据
- js window.open打开新页面
- JavaScript中的window.open()打开一个新的网页
- window.open()打开页面的几种方法
- window.open测试:打开一个唯一的页面
- window.open弹窗打开页面
- 向页面注册一过脚本,显示提示,关闭页面,刷新后面的页面(后面的页是window.open出来滴当前页)
- 将新打开的窗口放置在页面中间window.open