Home > Web Front-end > JS Tutorial > body text

Several ways to reload the current page or parent page using JS

高洛峰
Release: 2016-12-03 14:36:52
Original
1981 people have browsed it

During the development process, I want to refresh a fixed page at a certain time to update the properties of some controls on the page, such as display, hiding, clickability, etc.

is mainly used to refresh the page. The

method is as follows:

Method 1:

                                                                                                                                                                                                         with ion. replace("NEW_URL");

Method 3:

                                                                                                                      use   with           through    through  ‐ ‐ ‐replace("NEW_URL"); If you use JS to load a fixed format page at a certain time, this cannot be used.

The method is as follows:

Method one:

windows.location.person.href="NEW_URL";

Method two:

windows.location.person.reload();

Method three:

location.person.replace("NEW_URL");

Related labels:
js
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!