本文实例总结了Javascript刷新窗口方法。分享给大家供大家参考,具体如下:
1.javascript 刷新父窗口
<script> function reflushParent(){ window.opener.location.reload(); } </script>
2.javascript 刷新本窗口
<script> function reflushMe(){ javascript:location.reload(); } </script>
3.javascript 刷新本窗口(新)
<script language='javascript'> var currentUrl = this.location.href var currentQuery = this.location.search window.location.href=currentUrl +currentQuery </script>
4.javascript 刷新本窗口并追加一个参数
<script language='javascript'> var currentUrl = this.location.href var currentQuery = this.location.search window.location.href=currentUrl +currentQuery +"&language=English" </script>
希望本文所述对大家JavaScript程序设计有所帮助。
标签:
Javascript,刷新,窗口
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件!
如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
桃源资源网 Design By www.nqtax.com
暂无“Javascript刷新窗口方法小结”评论...