Use window. history. go (-1) refresh the "Previous Page" when returning to the previous page. This is suitable for "Previous Page" with dynamic updates, such as calling new posts on the Forum and calling the latest articles on the article system. If your "Previous Page" does not have dynamically updated content, we recommend that you do not perform this operation. When others attempt to return the content, they need to load it again.
Refresh once after Force Loading
Add the following code to the page to load:
Disable caching to achieve refresh Effect
<Meta http-equiv = "Expires" CONTENT = "0"> <meta http-equiv = "Cache-Control" CONTENT = "no-cache"> <meta http-equiv = "Pragma" CONTENT = "no-cache">
Back to previous page code:
PHP will often use the following method, and the server will return to the previous page after processing:
$ Page = "upload. php"; echo "<script> alert ('upload successful! '); Window. location = "". $ page. ""; </script> ";