-1

I am making a html file for myself and want to be able to enter variables then close the program and when I open it agian it will still remember the variable without me having to enter it again? Is this possible to do

1 Answers1

1

This is how you can set and get variables from local storage:

localStorage.setItem("Key", "Value");

alert(localStorage.getItem("Key"));

This will display Value on the screen.

Alek Arsovski
  • 339
  • 3
  • 18