How save changes to HTML on reload?
So if I dynamically add HTML elements, and reload the page, for it to not return to default but to be shown with the changes.
I'm wondering is there simple code for it?
This is something I found on the google but It's not working the best...
1 Reply
You can use local storage for that, here is the mdn article for it: https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage
Window.localStorage - Web APIs | MDN
The localStorage read-only property of the window interface allows you to access a Storage object for the Document's origin; the stored data is saved across browser sessions.