window.opener.location.reload();</慕白兄>
解决方案 »
- document的表单问题
- 一个正则的理解??
- JS 特殊字符替换
- 求:如何实现记录网页访问者IP地址的方法
- 请问如何探测出用户用的浏览器,ie6和ie7的区别
- 如何在一个网页里实现让工具栏一直在顶端不动,而下面的内容超过一屏时有下拉滚动条
- 点击滑动条的时候无法捕获mouseup事件,又是IE的bug?
- 为何对创建的对像添加事件无效呢?
- mozilla中的JS问题!!!!!
- 请问window.showModalDialog方法如何传递多个参数?
- 在线等待送分!!!打开网页如何用javascript onload事件隐藏工具条,输入地址栏等内容
- 谁有ah__fu (阿福) 发的TreeView(tv2.0.js)源码共享一下
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>子父窗口的操作</title>
</head>
<body>
<script>
var win=null;
function op()
{
win=window.open("about:blank","win","width=200,height=200");
win.document.write("<input type='button' value='刷新你父窗口' onclick='window.opener.location.reload()'>");
}
</script>
<input onclick="op()" value="打开窗口" type="button">
</body>
</html>