父页面弹出的子页面跳转后,怎么刷新父页面? <iframe>标签装载的子页面?parent.location.reload();就可以了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 把子页面做成100%宽高iframe的框架页面,iframe中放实际的子页面内容刷新父页面时用 window.parent.opener.location.reload(); 如果只是在子页面关闭的时候才刷新父页面。还有更简单的方法父页面var nw = window.open("http://www.baidu.com/");function closedis(){ if(nw.closed) window.location.reload(); else setTimeout(closedis,1000);}closedis();子页面什么代码都不用写 var result=openModal("修改信息","bcmOperationChapterAction!editBcmOperationChapter.action?objId="+id,'<%=path%>'); if(result=='1'){ frm.returnStatus.value='correct'; frm.aspect.value='edit'; submitForm('${pageModel.pageNo}') } function submitForm(val){ try{ frm["page.pageNo"].value=val;}catch(e3){} frm.submit(); } 给你个列子,在子页面关闭的时候返回一个值 多谢这位仁兄,经过我思考改良得出解决方案://对所在页面的弹出窗口进行监控,当关闭时刷新本页面function closedRefresh(nw){ if(nw.closed){ window.location.reload(); } else{ setTimeout(function() { timmer=setInterval(closedRefresh(nw),1000); }, 0) }}//用JS打开新窗口,并监控窗口有无关闭function openNewPageDetect(url){ var newWin = window.open(url,"_blank"); closedRefresh(newWin);}<a href="javascript:openNewPageDetect('http://www.baidu.com')">打开新窗口</a> 我那只是随手打的例子,你别一上来就自动打开子窗口啊<script type="text/javascript">var nw;function closedis(){ if(nw.closed) { alert("子窗口关闭了"); window.location.reload(); } else setTimeout(closedis,1000);}function openwin(){ nw = window.open("http://www.baidu.com/"); closedis();}</script><input type="button" value="打开窗口" onclick="openwin()" /> 在子窗口self.parent.location.reload(); 关于parseInt 滑动条问题 HTML中的select选定后触发什么事件?是onselect吗? 这样的页面跳转用javascript如何实现? 如何获得一个元素的class 请教简单的参数传递! 请问如何将JScript.Encode编码的东东反编码? 再来100分求解,还是关于表格问题? 急问:怎样控制页面一打开便自动去除IE的菜单、按钮? 如何能切换全fullscreen=1模式 求正则表达式的特殊符号表达 如何将加密的源代码转成网页内容?
刷新父页面时用 window.parent.opener.location.reload();
父页面var nw = window.open("http://www.baidu.com/");
function closedis()
{
if(nw.closed)
window.location.reload();
else
setTimeout(closedis,1000);
}
closedis();
子页面什么代码都不用写
if(result=='1'){
frm.returnStatus.value='correct';
frm.aspect.value='edit';
submitForm('${pageModel.pageNo}')
}
function submitForm(val){
try{
frm["page.pageNo"].value=val;}catch(e3){}
frm.submit();
} 给你个列子,在子页面关闭的时候返回一个值
多谢这位仁兄,经过我思考改良得出解决方案:
//对所在页面的弹出窗口进行监控,当关闭时刷新本页面
function closedRefresh(nw){
if(nw.closed){
window.location.reload();
}
else{
setTimeout(function() {
timmer=setInterval(closedRefresh(nw),1000);
}, 0)
}
}
//用JS打开新窗口,并监控窗口有无关闭
function openNewPageDetect(url){
var newWin = window.open(url,"_blank");
closedRefresh(newWin);
}<a href="javascript:openNewPageDetect('http://www.baidu.com')">打开新窗口</a>
var nw;
function closedis()
{
if(nw.closed)
{
alert("子窗口关闭了");
window.location.reload();
}
else
setTimeout(closedis,1000);
}function openwin()
{
nw = window.open("http://www.baidu.com/");
closedis();
}
</script>
<input type="button" value="打开窗口" onclick="openwin()" />
self.parent.location.reload();