Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

localstorage save array

var names = [];
names[0] = prompt("New member name?");
localStorage.setItem("names", JSON.stringify(names));

//...
var storedNames = JSON.parse(localStorage.getItem("names"));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #localstorage #save #array
ADD COMMENT
Topic
Name
3+9 =