This example summarizes the JavaScript Refresh window method. Share to everyone for your reference, specific as follows:
1.javascript Refresh Parent Window
<script>
function reflushparent () {
window.opener.location.reload ();
}
</script>
2.javascript Refresh this window
<script>
function Reflushme () {
javascript:location.reload ();
}
</script>
3.javascript Refresh this window (new)
<script language= ' javascript ' >
var currenturl = This.location.href
var currentquery = This.location.search
window.location.href=currenturl +currentquery
</script>
4.javascript Refresh this window and append a parameter
<script language= ' javascript ' >
var currenturl = This.location.href
var currentquery = This.location.search
window.location.href=currenturl +currentquery + "&language=english"
</ Script>
I hope this article will help you with JavaScript programming.