
Originally Posted by
fonurr
Thank you for response Ilkka, after your reply i have the following questions.
how can i reach that preserved user input?
The browser doesn't explicitly store the text, rather it just does not empty the input field values when a element containing the input field is hidden. So the way to access it is just
Code:
document.getElementById("inputid").value
so i have to write inverse functions to undo what user has done?
Yes, you would have to manually read values of input fields, states of any toggle buttons etc.., that is IF you completely remove the last page from the DOM. If you just hide it by setting el.style.display = "none"; DOM state is preserved and so are the possible changes made by the user. That will save a lot of work.
Br,
Ilkka