Home >Web Front-end >JS Tutorial >Several ways to reload the current page or parent page using JS
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");