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 梓楓 閱讀(311) 評論(0)  編輯  收藏 所屬分類: html
          主站蜘蛛池模板: 平南县| 双流县| 宿松县| 德令哈市| 竹溪县| 昌黎县| 怀来县| 上思县| 陕西省| 肥城市| 叶城县| 四子王旗| 无棣县| 兴文县| 上饶市| 永春县| 从化市| 柳江县| 开原市| 兴城市| 曲水县| 兖州市| 新民市| 顺平县| 凤冈县| 宜城市| 富锦市| 田东县| 元氏县| 东源县| 和林格尔县| 龙海市| 合川市| 磴口县| 会同县| 苍溪县| 德格县| 巴青县| 渝北区| 临泽县| 平乡县|