window.location.href/replace/reload()

window.location.href/replace/reload () — page Jump + replace + refresh

1. window.location.href= “URL”: change the URL address

2. window.location.replace (“URL”); replace the address with URL. This method replaces the items currently cached in the history (client) by specifying the URL, for example: three pages a, B, C. when the user visits page a, it jumps to page B. If you jump to the B page, how to trigger it to jump to the C page window.location.replace (“URL”); at the beginning of & lt; script & gt.

3. window.location.reload (): force refresh page, request again from server!

Similar Posts: