localStorage["name"] = value;
and to get the values we just:
value = localStorage["name"];
The localStorage keeps the values for ever (probably).
The sessionStorage keeps the values until the page session ends.
For each domain our browser has a pair of these objects and not for each page.
To store objects without functions we use JSON:
localStorage["name"] = JSON.stringify(object);
object = JSON.parse(localStorage["name"]);
done_