手机
当前位置:查字典教程网 >网页设计 >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 css 控制div或者table等固定在指定位置的实现方法

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

Html 元素隐藏的几种方式

网页常用代码 比较基础的东西

html doctype 作用介绍

html中iframe控制父页面刷新实现思路及代码

html标签默认样式整理

html表单的几种提交方式总结

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

超级链接a的提示方式和打开方式

精品推荐
分类导航