父页面调用子页面
//用这个对象调用子页面的函数或者dom var myiframe = $("#right_iframe")[0].contentWindow;
子页面调用父页面
//在iframe中查找父页面元素 alert($(‘#default‘, window.parent.document).html()); //在iframe中调用父页面中定义的方法 parent.getHelloWorld(); //在iframe中调用父页面中定义的变量 alert(parent.hello);
原文:http://www.cnblogs.com/CyLee/p/5325018.html