Save current page state javascript
问题 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