1.如果是iframe内嵌的子页面
父页面调子页面的方法:document.getElementById('iframe的ID').contentWindow.方法名;
子页面调父页面的方法:window.parent.方法名;
2.如果是window.open打开的窗口
窗口调父页面的方法:window.opener.方法名;
关闭窗口:window.colse();
1.如果是iframe内嵌的子页面
父页面调子页面的方法:document.getElementById('iframe的ID').contentWindow.方法名;
子页面调父页面的方法:window.parent.方法名;
2.如果是window.open打开的窗口
窗口调父页面的方法:window.opener.方法名;
关闭窗口:window.colse();