iframe框架下子页面调用另一个子页面的方法;

parent.window.frames["id_tabcon_453"].contentDocument.getElementById('search_fresh').onclick();
获取到iframe的id;可以获取到需要的iframe架构;
window.frames["id_tabcon_453"].document.getElementById('search_fresh').onclick();
这种方法我用的时候不对;
// 关闭后是我的任务页面进行刷新
                            // 判断浏览器是不是ie;谷歌和ie的处理方法不同
                            if (!!window.ActiveXObject || "ActiveXObject" in window){
                                // ie的处理方法
                                parent.window.frames["id_tabcon_453"].document.getElementById('search_fresh').onclick();
                            }else{
                                // 谷歌的处理方法
                                parent.window.frames["id_tabcon_453"].contentDocument.getElementById('search_fresh').onclick();
                            }
                            // parent.window.frames["id_tabcon_453"].contentDocument.getElementById('search_fresh').onclick();
                            parent.iFrameTab.closeTabID('qc_task_manage_my_info_re_checked'+json_id);
希望自己写的东西能够对大家有所帮助!谢谢
原文地址:https://www.cnblogs.com/mrxinxin/p/11383401.html