Is it possible to save the current state of a webpage so you can later restore it to that state?
Through "state" I mean everything that defines the current behavior of the page: html tags, css, JavaScript variables, form data, etc...
So you could simply have something like: savePage()
which stores all the needed data in localhost and then use loadPage()
to retrieve that data.
I guess the html
, css
and inputs value
are easy to save, but what about all the JavaScript variables on that page? Is it possible to save all the JavaScript variables held in the memory? (probably in a JSON
object).
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…