Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js local storage

myStorage = localStorage;

localStorage.setItem('myCat', 'Tom');

var cat = localStorage.getItem('myCat');

localStorage.removeItem('myCat');

localStorage.clear();
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #js #local #storage
ADD COMMENT
Topic
Name
1+4 =