Today I wrote a small page that prompts success. At the same time, it requires returning to the previous page and refreshing the operations on the previous page (such as deletion and addition). I searched it online and found basically 90 % of them all say to use window.history.go(-1), or use window.history.back(-1), and some say to use
to refresh the parent page on the child page.After testing on the JSP page, after clicking the button to save the added items on the operation page and then jumping to the success prompt page, I found that they were not refreshed and were displayed after manual refresh. For those pasting and copying techniques, they have not been tested. The article is really sad.
Actually, for this technology, I have not found that it can be implemented completely relying on JS. One idea is to prevent the previous page from being cached and just read it out every time (I don’t understand the specific principles of other people’s ideas)
The implementation method of JSP is as follows:
Reply-text mb10 code
The implementation method of ASP page is as follows:
Reply-text mb10 code