方案一:
用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','')">
Copyright © 2019- obuygou.com 版权所有 赣ICP备2024042798号-5
违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务