window.opener.location.reload();</慕白兄>
解决方案 »
- 如何结束 body里的onbeforeunload 事件,也就是取消这个事件触发
- 求救:控件中的ID名带有点号,请问在脚本中如何通过ID获取该控件的值?
- 在Aptana这个软件里制作网页可以吗?需要注意什么吗?
- 一个简单的方法,为什么死循环了?
- flash如何响应单击事件?
- JS关于控件更改父级 急! 在线等!
- 请问如何和javascript控制页面中的realplay组件?
- 如何控制嵌入式框架载入网页?
- textarea编辑的问题(有一定难度)
- 谁知道哪里有用JScript做的“日期时间控件”?要源码!
- 在线等待送分!!!打开网页如何用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>