手机
当前位置:查字典教程网 >网页设计 >XHTML >iframe 的刷新方式 这样方式更方便
iframe 的刷新方式 这样方式更方便
摘要:iframe的刷新方式1.刷新方式可以使用javascript的document.fr.location.reload()2.还有就是修改d...

iframe的刷新方式

1. 刷新方式可以使用 javascript 的 document.fr.location.reload()

2. 还有就是修改 document.fr.location.href 也可以实现刷新的功能

例如:

<iframe name="fr" width="96%" src="alert_search.do?method=findSys"></iframe>

<script type="text/javascript">

function show_syslog(id){

document.fr.location.href="/alert_search.do?method=findSys&id="+id;

}

</script>

<input type="button">

注意:千万不要两种方式同时使用,如果同时使用,将会提交两次。

document.fr.location.href = "your.html";

document.fr.location.reload();

【iframe 的刷新方式 这样方式更方便】相关文章:

一些编写高性能HTML应用的建议

了解HTTP Headers的方方面面 图文说明

html 自定义标签使用实现方法

iframe的各项参数整理附说明及使用示例

iframe如何刷新的三种实现方案

关于html标签自定义属性的问题

关于iframe的一点发现与思考

Iframe和FRAME的区别分析

5种方法快速去掉HTML中Inline-Block的空白

网站超级链接的打开方式探讨

精品推荐
分类导航