Occasionally, Javascript is used to refresh the page. When the page cannot be refreshed, We will summarize several methods of refreshing the page using Javascript, as shown below:
Window. location. reload () refresh the current page. parent. location. reload () refresh the parent object (for Framework) opener. location. reload () Refresh parent window object (used for single-open window) top. location. reload () refresh the top object (used to open multiple Windows)
Articles you may be interested in
- Jquery checks whether the page has been loaded with the jquery File
- Js address bar special effects (display the size of all images with links on the page and view the height of the current browser)
- Insert element in js to the front of the page body
- Three solutions for ineffective page refresh caused by Js, css, and images cached on webpages
- JQuery implements several effects of gradient switching of images
- Javascript determines whether the mouse is left or right-click-compatible with ie, firefox, chrome, and other major browsers
- JavaScript to print pages
- How to Use jquery. lazyload to dynamically delay page image loading