Home > Enterprise >  How to save, load and edit lists in JavaScript
How to save, load and edit lists in JavaScript

Time:04-11

So I have heard about saving and I wanted to make so that on my website users can make list of clickable links and save them and delete them. So is it possible? I am good at HTML and CSS but I am just learning JavaScript.

CodePudding user response:

Yeah, it's possible. You need to save the data somewhere : it could be on the browser of the user by using localStorage or on the server by creating an API that can save the data, for example, in a database.

CodePudding user response:

You can store the list of links in an array and then JSON.stringify it so you can store it in localStorage (localStorage only accepts strings). Just have an input for links and a button to add them then add some event listeners to read then change localStorage.

  • Related