Several ways to refresh the page in Javascript:
1 history.go(0)
2 location.reload()
3 location=location
4 location.assign(location)
5 document.execCommand('Refresh ')
6 window.navigate(location)
7 location.replace(location)
8 document.URL=location.href.
______________________________________________
In the frame page: (One of the subpages in the frame page)
top.location.reload(); Refresh the entire page
self.location.reload(); Refresh this page
window.parent.location.href='' Frame page redirect
____________________________________________
How to automatically refresh the page :1. Automatically refresh the page: Add the following code to thearea where 20 means refreshing the page every 20 seconds.Refresh when the window is openedRefresh when the window is closed.成功 Example: After the data is added, the dialog box pops up and refreshes the page
(infoAction_sort.Insert (info_sort)) {
scriptManager.registerStartupscript (this.UpdatePanel, this.Gettype (), "Al ErT "," Alert (' Album category added successfully');window.location.reload();", true);ing()); //Refresh this page
For more related articles on JS methods to refresh the page, please pay attention to PHP Chinese net!
The most promising coin in 2024
Win10 does not support the disk layout solution of Uefi firmware
Check if the port is open in linux
What are the four big data analysis tools?
How to solve the computer prompt of insufficient memory
Why does wifi have an exclamation mark?
How to unlock oppo phone if I forgot password
Index exceeds array bounds solution