window.opener.location.reload(true);reload() default is reload(false),it will reload the page from the cache;you should defined true to force it reload from the server @_@
解决方案 »
- 求助,每点击一次Bottom按钮,添加一个表格.
- 加入document.onkeydown后一按ESC,GIF动态图片就变静止的了
- 用animate做div的展开 有什么办法可以从右往左展开嘛
- firefox下关闭window?
- ========鼠标悬停提示,像CSDN上鼠标移到别人头像上可以显示信息,并且在弹出的层上面有连接这个效果怎么做。求助!======
- javascript控制服务器端控件的Enable属性
- 需要修改扩展下一个jquery插件
- 很奇怪的undefined问题!
- 求正则表达式,谢谢
- interator迭代运行后什么也不显示
- 绑定事件时,传递参数的问题!!
- javascript怎样实现后退到前一页并刷新后退后的页面???????
或window.opener.location.href = window.opener.location.href;
或window.operner.location.replace(location);
window.opener.location.reload(true); //true代表从服务器重新获取,false为从缓存中获取,默认为false
或window.opener.location.href = window.opener.location.href;
或window.operner.location.replace(window.opener.location);
即:
window.opener.location.href = window.opener.location.href
这个也试了,还是一样。要点重试
子页面 child.html
<input type='button' value='关闭子窗口' onclick='close_win()'>
<script language='JavaScript'>
function close_win(){
window.close();
window.opener.location.reload();
}
</script>
父页面:
<input type="button" value="弹出子窗口" onclick="window.open('child.html','','width=420,height=330')"><br><br>
看能否刷新?<input type='text' value=''>