How to refresh a page using javascript

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.