标签:javascript 跨域 刷新父窗口
//实现javascript 跨域子窗口关闭并刷新父窗口
function winOpen(url){
var win=window.open(url,‘‘,‘height=480,width=670,top=300,left=300,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,status=no‘);
setInterval((function(win){return function(){
if(win.closed){
window.location.reload();
}
};})(win),1000);
}
标签:javascript 跨域 刷新父窗口
原文地址:http://5476646.blog.51cto.com/5466646/1660372