window.open页面关闭后刷新父页面

如题

function openWin(url,text,winInfo){  
    var winObj = window.open(url,text,winInfo);  
    var loop = setInterval(function() {       
        if(winObj.closed) {      
            clearInterval(loop);      
            //alert('closed');      
            parent.location.reload();   
//window.location.reload(); 刷新当前页面 } }, 1); }

 

posted @ 2016-09-13 17:11  wujixing909  阅读(3186)  评论(0编辑  收藏  举报