Tuesday, 27 August 2013

How to get the previous pushstate with javascript

How to get the previous pushstate with javascript

I want something like document.referrer. But since I'm building a single
page app, with backbone and pushstate, the value is "".
How can I get something like history.prevState().url.
EDIT: I do not need the event. I want to access info of the previous state
anytime/anywhere I want.

No comments:

Post a Comment