Background:
I'm trying to update a website, and there is a Login.html
page which will be redirected to when login is required.
But now the customer want to make the login page to slide from bottom (not redirect to).
I'm trying to make it with least effort. So I'm trying to let the original Login.html
goes back always, and then on every page, detect whether the history.forward()
page is the original Login.html
, if yes, slide the new login page after loaded.
But it leads to a technical question, how to fetch the history.forward
url only but don't go to that page? I've found the solution but not found.
Any good suggestion to my background target would also be appreciated.
Thanks to the comment, I already know that doing this on history is not allowed. But what if I store the visit stack on localStorage
? And now the question reduced to how to distinguish different window? I want to store the visit stack according to the key of different window.