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();

  

posted @ 2014-03-12 16:27  wxqi528  阅读(236)  评论(0编辑  收藏  举报