Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

local storage in vanila javascript

// Store data
var someData = 'The data that I want to store for later.';
localStorage.setItem('myDataKey', someData);

// Get data
var data = localStorage.getItem('myDataKey');

// Remove data
localStorage.removeItem('myDatakey');
Source by gomakethings.com #
 
PREVIOUS NEXT
Tagged: #local #storage #vanila #javascript
ADD COMMENT
Topic
Name
3+4 =