Transfer data from one HTML file to another code example
Example 1: how to pass the data from one page to another in javascript
var favoritemovie = "Shrek";
sessionStorage.setItem("favoriteMovie", favoritemovie);
Example 2: how to transfer data from 2 html files
localStorage["key"] = value;
// ... in another page ...
value = localStorage["key"];