Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript localstorage

localStorage.setItem("user_name", "Bob");

document.body.addEventListener("click", function(){
  alert(localStorage.getItem("user_name"))
});
 
PREVIOUS NEXT
Tagged: #javascript #localstorage
ADD COMMENT
Topic
Name
8+6 =