get/set items from localstorage code example
Example 1: javascript get local storage
var Item = localStorage.getItem('youritem');
Example 2: get localstorage value
localStorage.getItem('bgcolor');
var Item = localStorage.getItem('youritem');
localStorage.getItem('bgcolor');