Using the trunk, can you somehow store some data in history so that it can be restored when you call your back?
In no basic application, the application I will look as follows. When performing an action:
history.pushState(mycurrentData, title, href)
and the following to return the current data in case of a return:
function popState(event) {
if (event.state) {
state = event.state;
}
}
window.onpopstate = popState;
I need to apply the same behavior in my base application.
thank
source
share