摘自:aehyok 

<iframe src="1.htm" name="ifrmname" ></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','')">

相关文章:

  • 2021-04-08
  • 2021-06-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-17
  • 2021-08-28
猜你喜欢
  • 2021-09-16
  • 2022-03-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
相关资源
相似解决方案