George World

          技術改變明天,創新塑造未來! i(at)huadev.com Follow Me: http://t.sina.com.cn/georgeworld

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            28 隨筆 :: 0 文章 :: 5 評論 :: 0 Trackbacks

          框架結構:

          <frameset rows="127,*,11" frameborder="no" border="0" framespacing="0">
            <frame src="top.action" name="topFrame" scrolling="no" noresize="noresize" id="topFrame" />
            <frame src="center.action" name="mainFrame" id="mainFrame" scrolling="auto" />
            <frame src="down.action" name="bottomFrame" scrolling="no" noresize="noresize" id="bottomFrame" />
          </frameset>
          <noframes>

           

          當前位于框架頁:top.action

          需要被調用的JavaScript函數【funcA()】位于框架頁:center.action

          實現方法:

          在top.action內:window.parent.window.frames['mainFrame'].funcA();

          posted on 2010-04-27 16:27 George-tech 閱讀(1334) 評論(1)  編輯  收藏 所屬分類: Web.Design.JavaScript

          評論

          # re: 從一個子框架頁面調用另一個子框架頁面內的JavaScript函數 2014-04-28 19:54 收到
          阿薩德發  回復  更多評論
            


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 南乐县| 张家口市| 宜阳县| 吴堡县| 昭觉县| 隆昌县| 庆云县| 萨迦县| 宽甸| 固安县| 兴国县| 子洲县| 香港| 呼玛县| 杨浦区| 满城县| 石楼县| 固镇县| 石城县| 宁国市| 新民市| 苗栗县| 金阳县| 上虞市| 新河县| 当雄县| 田林县| 新宾| 恩施市| 沿河| 周宁县| 顺义区| 永春县| 民勤县| 乌审旗| 尚志市| 绩溪县| 襄城县| 桃江县| 新兴县| 东莞市|