enter different document js code example
Example: how to transfer data from 2 html files
localStorage["key"] = value;
// ... in another page ...
value = localStorage["key"];
localStorage["key"] = value;
// ... in another page ...
value = localStorage["key"];