window.open() 父页面子页面

//window.open()总是被阻止 有了这个方法就好了
window.open(urlContent, '授权信息', 'height=450px;, width=650px, top=200px,left=400px, toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no');
//父页面的方法
function info(str1){

}


_____________________________下面是子页面的信息__________________
//这样还能回调父类页面的方法

//调用父页面的方法
window.opener.info('str1');
window.opener=null;
//关闭当前窗口
window.close();

  

原文地址:https://www.cnblogs.com/jayGold/p/3596609.html