posts - 75,comments - 83,trackbacks - 0
          <iframe src="1.htm" name="ifrmname" id="ifrmid"></iframe>

          方案一:用iframe的name屬性定位
          ???? <input type="button" name="Button" value="Button"
          onclick="document.frames('ifrmname').location.reload()">


          <input type="button" name="Button" value="Button"
          onclick="document.all.ifrmname.document.location.reload()">

          方案二:用iframe的id屬性定位
          <input type="button" name="Button" value="Button"
          onclick="ifrmid.window.location.reload()">

          終極方案:當iframe的src為其它網站地址(跨域操作時)
          <input type="button" name="Button" value="Button"
          onclick="window.open(document.all.ifrmname.src,'ifrmname','')">

          posted on 2010-10-26 15:07 梓楓 閱讀(304) 評論(0)  編輯  收藏 所屬分類: html
          主站蜘蛛池模板: 通榆县| 秭归县| 永寿县| 定远县| 百色市| 玛多县| 安泽县| 金湖县| 河津市| 边坝县| 陆良县| 宜宾市| 沭阳县| 晋城| 贵南县| 隆回县| 隆化县| 六盘水市| 仪征市| 扎鲁特旗| 务川| 巩义市| 兴业县| 商南县| 启东市| 苍溪县| 昂仁县| 沙田区| 南开区| 遵化市| 启东市| 土默特左旗| 秦安县| 玛纳斯县| 北京市| 蒙自县| 巨野县| 顺平县| 冕宁县| 合肥市| 兴和县|