javascript how to get local storage.getitem in html code example Example: javascript get local storage var Item = localStorage.getItem('youritem');