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" onclick="javascript:show_syslog(1)">
注意:千万不要两种方式同时使用,如果同时使用,将会提交两次。
代码如下:
document.fr.location.href = "your.html";
document.fr.location.reload();
Copyright © 2019- obuygou.com 版权所有 赣ICP备2024042798号-5
违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务