Using localStorage to store information submitted in input fields, so they’re persistent. This is updated with every keypress, and uses a function so that it’s easy to add more fields. I used for to iterate over every item in localStorage, and setting the inputs to their values when not null. The onkeydown event calls a function that stores the current value at the relevant key after every keypress. However, one issue has arisen where the last character typed does not get stored. I hope to fix this shortly. Next, I hope to figure out the best way to store other types of data, not just text inputs.
Comments 1
cool project twin!!! keep it going!
Sign in to join the conversation.