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為其它網(wǎng)站地址(跨域操作時)
          <input type="button" name="Button" value="Button"
          onclick="window.open(document.all.ifrmname.src,'ifrmname','')">

          posted on 2010-10-26 15:07 梓楓 閱讀(303) 評論(0)  編輯  收藏 所屬分類: html
          主站蜘蛛池模板: 汝阳县| 景德镇市| 寿阳县| 明溪县| 阳泉市| 平昌县| 普洱| 连江县| 滨州市| 古丈县| 乌兰县| 兴宁市| 安远县| 长子县| 张掖市| 通州市| 奈曼旗| 黄平县| 安达市| 镇远县| 土默特右旗| 石台县| 什邡市| 泰州市| 得荣县| 滁州市| 平远县| 澜沧| 高邑县| 昆山市| 大余县| 嘉定区| 霍山县| 金华市| 凭祥市| 芦溪县| 广西| 汶川县| 义乌市| 大厂| 黔江区|