一、JS实现关闭当前子窗口,刷新父窗口
JS代码如下:
<script>
function refreshParent() {
window.opener.location.href = window.opener.location.href;
window.close();
}
</script>
html页面代码如下:
<input type="button" id="btn1" class="btn" value="同意" disabled=true οnclick="refreshParent()" />
二、JS子窗口与父窗口之间的调用
地址:http://azrael6619.iteye.com/blog/486079
原文地址 http://blog.csdn.net/lifuxiangcaohui/article/details/45390205