js localstorage browsers code example
Example 1: how to get variable in local storage in javascript
localStorage.getItem('id');
Example 2: my local storage
/* function for setIetm to local storage */
function set(){
var sendJson = JSON.stringify(allwish);
localStorage.setItem("wishKay",sendJson);
}