我的java天地

          關于頁面刷新和iframe刷新

          1.頁面中刷新? window.location.reload();

          2.iframe刷新
          <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 2009-06-24 00:31 tobyxiong 閱讀(2785) 評論(0)  編輯  收藏 所屬分類: show page

          <2009年6月>
          31123456
          78910111213
          14151617181920
          21222324252627
          2829301234
          567891011

          導航

          統計

          常用鏈接

          留言簿(3)

          隨筆分類(144)

          隨筆檔案(157)

          相冊

          最新隨筆

          搜索

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 治县。| 梓潼县| 宜兰县| 本溪| 息烽县| 乌兰察布市| 来安县| 中方县| 丹凤县| 姚安县| 六安市| 十堰市| 和平县| 德兴市| 苏州市| 邯郸市| 马关县| 贵港市| 海宁市| 库尔勒市| 新河县| 沅江市| 丰台区| 镇宁| 东安县| 漾濞| 辉县市| 东乡族自治县| 临漳县| 淮滨县| 专栏| 大洼县| 广水市| 梁河县| 黔东| 大厂| 桃园市| 阿瓦提县| 台湾省| 香港| 辽中县|