Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

localstorage javascript

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