0

I want to make a web-based TO-DO list exactly like the one on the W3schools link below, however when I close the browser all the inputs and edit disappear and it reverts back to the original. Is it possible to easily store the values (if not I will quickly delete this Q)? What code can I add to make it save the data (perhaps localstorage?) each time or would I have to set up a php/mySql? No authentication required, whatever is the most straightforward way to do it.

The exact code is below. I prefer to host locally for simplicty but if necessary web based hosting server is also fine with me.

To Do List Example from W3 Schools

Jack Bashford
  • 43,180
  • 11
  • 50
  • 79

1 Answers1

0

You can use Javascript LocalStorage to save data on browser close, only if it is being loaded on a domain that is accessed via HTTP.

Though, you can use a server-side database, such as mySQL to store data.

Dan K
  • 38
  • 4