脚本宝典收集整理的这篇文章主要介绍了iframe 的刷新方式 这样方式更方便,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
ifr
ame的刷新方式
1. 刷新方式可以使用 javascript 的 document.fr.location.reload()
2. 还有就是修改 document.fr.location.
href 也可以实现刷新的功能
例如:
<iframe name="fr" width="96%" src="alert_se
Arch.do?method=find
Sys"></iframe>
<script ty
PE="text/javascript">
function show_sys
LOG(id){
document.fr.location.href="/alert_search.do?method=findSys&am
p;id="+id;
}
</script>
<input type="button" onclick="javascript:show_syslog(1)">
注意:千万不要两种方式同时使用,如果同时使用,将会提交两次。
document.fr.location.href = "your.ht
ML";
document.fr.location.reload();
脚本宝典总结
以上是脚本宝典为你收集整理的iframe 的刷新方式 这样方式更方便全部内容,希望文章能够帮你解决iframe 的刷新方式 这样方式更方便所遇到的问题。
如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。