You can also save the last page through location.hash, location.search, and cookie. This can be achieved by modifying 1.html. Other pages do not need to be modified.
After clicking 3.html, the difference between the three methods: location.hash /1.html#/3.html location.search /1.html?/3.html document. cookie /1.html (unchanged)
If you are using a new browser, all support HTML5, and there are localStorage, sessionStorage and other places where you can save it, and the path is /1.html unchanged.
Use the _top window to jump to the entire page.
You can also save the last page through location.hash, location.search, and cookie. This can be achieved by modifying 1.html. Other pages do not need to be modified.
After clicking 3.html, the difference between the three methods:
location.hash /1.html#/3.html
location.search /1.html?/3.html
document. cookie /1.html (unchanged)
If you are using a new browser, all support HTML5, and there are localStorage, sessionStorage and other places where you can save it, and the path is /1.html unchanged.