zoukankan      html  css  js  c++  java
  • 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);
    希望自己写的东西能够对大家有所帮助!谢谢
  • 相关阅读:
    IOS开发之控件(Ⅰ)
    Windows 8 Metro App开发[7]视图模型与数据绑定
    WP7/8退出程序
    Windows 8 Metro App开发[8]处理Fullscreen, Snapped和Filled状态
    【原创】WP7.8 ROM更新图文并茂
    Windows 8 Metro App开发[5]导航栏(AppBar)的使用
    Iphone开发准备工作
    20191302第十二章学习笔记
    实验四Web服务器2
    2.5 OpenEuler 中C与汇编的混合编程
  • 原文地址:https://www.cnblogs.com/mrxinxin/p/11383401.html
Copyright © 2011-2022 走看看