Passe a variável para outra página em JS
function valueSender()
{
var a=999;
localStorage.setItem("myValue", a);
window.location.href="index.html";
}
var b = localStorage.getItem("myValue");
alert("The Value Received is " + b);
var resetValue =0;
localStorage.setItem("myValue", resetValue);
Precious Pygmy