The most easier LocalStorage example in JS : i know that there were similar question about it, but can you explain in the most easy way how can i use localStorage when user insert data in one page, but this data should be used in another file.
for example:
in registration.html we have

     <input name="name" type="text" id="firstname"> <input type="button" 
     value="OK" >

in cabinet.html i want to see:

     Hello, *inputed name*

i need to perform it using JAVASCRIPT.
Thank a lot for your answers. 