How to save form data when you click the back button

I am developing a rail application. (I do not think that this is a problem with rails) There is a backup process, which consists of 3 steps. When the user is on page 2, if the user clicks the Previous button, the form data in step 1 should be the same as before.

I attached "history.go (-1);" to the previous button.

It works in my Firefox browser. But it does not work in some IE browsers. My IE works though.

How can I make it save the form data when the page returns?

Thanks.

Sam

+3
source share
4 answers

(javascript) .

- 1, .

+3

2 - , , .

+1

iframe . , , , URL. , , dojo jquery.

+1

ASP.NET ViewState (: , ). , Rails.

+1

Source: https://habr.com/ru/post/1711028/


All Articles