Zachowaj wartość po odświeżeniu JavaScript
var someVarName = "value";
localStorage.setItem("someVarKey", someVarName);
Anthony Jr
var someVarName = "value";
localStorage.setItem("someVarKey", someVarName);