Passer la variable à une autre page dans 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