Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

local storage javascript

localStorage.setItem('user_name', 'Rohit'); //store a key/value
var retrievedUsername = localStorage.getItem('user_name'); //retrieve the key
 
PREVIOUS NEXT
Tagged: #local #storage #javascript
ADD COMMENT
Topic
Name
3+1 =