Add Home
Automatic Persistent Form
This page saves to either local or session storage every 5 seconds. Notice how if you make changes to the form (and allow it to save) you can leave the page and upon your return your data will return back to the input fields.
Local Storage
If you select localStorage
then you can close the browser and return,
open a new tab and navigate back to the page - even reboot your machine and your
data will persist.
Note: Context changes when you switch from regular to "in private" or "incognito" browsing. If you find unexpected results in some browsers private browsing may be to blame.
Session Storage
Using sessionStorage
, however, is only good during the browser's session.
Note: Sessions are not continuous in different tabs.