国产精品亚洲综合一区在线观看_国产性猛交╳xxx乱大交_中文字幕精品一区二区精品_国产午夜精品一区二区三区不卡_国产亚洲精品久久久久久青梅 _精品国产午夜肉伦伦影院_国产欧美va欧美va香蕉在线_99久久婷婷国产综合精品_国产精品白浆一区二小说

綠色資源網(wǎng):您身邊最放心的安全下載站! 最新軟件|熱門排行|軟件分類|軟件專題|廠商大全

綠色資源網(wǎng)

技術(shù)教程
您的位置:首頁網(wǎng)頁設(shè)計網(wǎng)頁特效 → JS實現(xiàn)刷新iframe的方法

JS實現(xiàn)刷新iframe的方法

我要評論 2012/06/25 11:17:42 來源:綠色資源網(wǎng) 編輯:downcc.com [ ] 評論:0 點擊:287次

<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','')">

關(guān)鍵詞:JS,iframe

閱讀本文后您有什么感想? 已有 人給出評價!

  • 3 歡迎喜歡
  • 5 白癡
  • 6 拜托
  • 74 哇
  • 4 加油
  • 2 鄙視

<source id="kxcwz"></source>
<bdo id="kxcwz"><span id="kxcwz"><del id="kxcwz"></del></span></bdo>
    1. <pre id="kxcwz"></pre>