父窗口
<script type ="text/javascript">
function open1(){
window.open('child.html',"self1",'modal=yes,width=800,height=600,resizable=no,scrollbars=no');
}
function test(abc){
alert(abc);
}
</script>
子窗口
function init(){
window.opener.test("abc");
//window.opener["i1"] = "5";
}
</script>
其实主要是通过访问父方法来完成对父窗口属性值得访问