how to take transfer value calculated in javascript file to an html page 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"];