Javascript refresh window method summary, javascript window
This example summarizes the Javascript refresh window method. We will share this with you for your reference. The details are as follows:
1. Refresh the parent window with javascript
<Script> function reflushParent () {window. opener. location. reload () ;}</script>
2. Refresh this window with javascript
<Script> function reflushMe () {javascript: location. reload () ;}</script>
3. Refresh this window with javascript (new)
<Script language = 'javascript '> var currentUrl = this. location. href var currentQuery = this. location. search window. location. href = currentUrl + currentQuery </script>
4. Refresh the window with javascript 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 design JavaScript programs.