Category "pushstate"

history.pushState() not working properly on phone

I have a chap app where user first fills up a form then they are redirected to the chat page. Now the problem is when user clicks the back button they goes back

Pop the last state from history

Is it possible to get the html of the last state pushed to history stack, something like this: history.pushState(null, null, {html: $('body').html()}); Chan