demo.htm<script>
window.open('http://www.baidu.com',null,'width=400,height=300')
</script>
window.open('http://www.baidu.com',null,'width=400,height=300')
</script>
解决方案 »
- 请教iframe内插入图片后在谷歌浏览器下不能编辑问题
- jQuery("#startDate").datepicker is not a function
- 如何在网页中显示注释
- 函数返回值问题
- 如何获得treeview中各节点在控件中的相对坐标。
- 左右两个框架,右边是到别人的页面的,,我不能控制,如何实现自动刷新右边的,而左边不刷新呢??
- 有10个input文本框。要判断10个里面不为空的都不相等,有什么好办法 。谢谢了!
- 怎样实现:正在检索请等待....的效果
- 客户端技术(javascript vbscript等)能实现网站总流量和日流量统计吗?
- 如何实现在网页关闭前执行一段与服务器交互的代码?
- 请问怎么用javascirpt 实现像qq里的好友那样的上下滚动!
- 如何模拟组合键?
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<script language="javascript">
<!--
function CloseWin()
{
var ua=navigator.userAgent
var ie=navigator.appName=="Microsoft Internet Explorer"?true:false
if(ie){
var IEversion=parseFloat(ua.substring(ua.indexOf("MSIE ")+5,ua.indexOf(";",ua.indexOf("MSIE "))))
if(IEversion< 5.5){
var str = '<object id=noTipClose classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11">'
str += '<param name="Command" value="Close"></object>';
document.body.insertAdjacentHTML("beforeEnd", str);
document.all.noTipClose.Click();
}
else{
window.opener =null;
window.close();
}
}
else{
window.close()
}
}
//-->
</script>
</head><body onLoad="window.open('_blank','hello','width=200,height=200');CloseWin();"></body>
</html>