摘自:aehyok
<iframe src="1.htm" name="ifrmname" id="ifrmid"></iframe>
方案一:
用iframe的name属性定位
<input type="button" name="Button" value="Button" οnclick="document.frames('ifrmname').location.reload()">或 <input type="button" name="Button" value="Button" οnclick="document.all.ifrmname.document.location.reload()">方案二:
用iframe的id属性定位
<input type="button" name="Button" value="Button" οnclick="ifrmid.window.location.reload()">终极方案:
当iframe的src为其它网站地址(跨域操作时)
<input type="button" name="Button" value="Button" οnclick="window.open(document.all.ifrmname.src,'ifrmname','')">