Home >Topic List >js refresh current page

js refresh current page

js method to refresh the current page: 1. Reload method, this method forces the browser to refresh the current page, the syntax is "location.reload([bForceGet])"; 2. Replace method, this method replaces the current cache in the history by specifying the URL (client) project, so when using the replace method, the replaced URL cannot be accessed through "forward" and "back", the syntax is "location.replace(URL)". PHP Chinese website brings you the relevant knowledge about refreshing the current page with js, as well as related articles and other content