JS实现刷新iframe的方法
2008-11-03 12:45
751 查看
<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为其它网站地址(跨域操作时)
<input type="button" name="Button" value="Button"
onclick="window.open(document.all.ifrmname.src,'ifrmname','')">
方案一:用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','')">
相关文章推荐
- JS实现刷新iframe的方法
- JS实现刷新iframe的方法
- JS实现刷新iframe的方法
- JS实现刷新iframe的方法
- JS实现刷新iframe的方法
- 【转】 JS实现刷新iframe的方法
- JS实现刷新iframe的方法
- js实现刷新iframe的方法汇总
- JS实现刷新iframe的方法
- JS实现刷新iframe的方法
- JS实现刷新iframe的方法
- JS实现刷新iframe的方法
- 转:JS实现刷新iframe的方法
- 2011-03-17 18:49 JS实现刷新iframe的方法
- js 能实现监听F5页面刷新子iframe 而父页面不刷新的方法
- JS实现刷新iframe的方法
- JS实现刷新iframe的方法
- js实现刷新iframe的方法汇总
- JS实现刷新iframe的方法
- JS实现刷新iframe的方法