网上有很多的都是关闭子窗口,父页面刷新的问题。
我需要处理的场景是。三个界面。
解决办法:
<script>
function refreshParent() {
window.opener.location.href = window.opener.location.href;
window.close();
}
</script>
input type="button" id="btn1" class="btn" value="同意" disabled=true onclick="refreshParent()" />
需要修改:
function closeWindowrefreshParent() {
if (ie6) {
window.opener.location.href = window.opener.location.href;
window.close();
} else {
window.opener.location.href = window.opener.location.href;
window.open('','_top');
window.top.close();
}
}