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
          主站蜘蛛池模板: 宜阳县| 新沂市| 邢台县| 潍坊市| 偏关县| 当阳市| 隆尧县| 北宁市| 绍兴市| 鄢陵县| 赫章县| 临夏市| 宕昌县| 永德县| 诸城市| 辽阳县| 色达县| 郧西县| 大石桥市| 高雄市| 监利县| 塔河县| 九龙县| 清徐县| 汨罗市| 平湖市| 贵州省| 武清区| 德清县| 水城县| 麦盖提县| 谷城县| 会泽县| 巍山| 苏尼特右旗| 纳雍县| 康定县| 紫金县| 冷水江市| 周宁县| 锡林郭勒盟|