复制代码
代码如下:方案一:
用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','')">
注:资源为互联网收集,仅供学习与参考,请勿用于商业用途,如有疑问请联系人工客服QQ:9616463