本文实例总结了Javascript刷新窗口方法。分享给大家供大家参考,具体如下:
1.javascript 刷新父窗口
function reflushParent(){
window.opener.location.reload();
}
2.javascript 刷新本窗口
function reflushMe(){
javascript:location.reload();
}
3.javascript 刷新本窗口(新)
var currentUrl = this.location.href
var currentQuery = this.location.search
window.location.href=currentUrl +currentQuery
4.javascript 刷新本窗口并追加一个参数
var currentUrl = this.location.href
var currentQuery = this.location.search
window.location.href=currentUrl +currentQuery +"&language=English"
希望本文所述对大家JavaScript程序设计有所帮助。
原文链接:https://www.f2er.com/js/52053.html