index.js // linked to all php files.
var pass;
console.log(pass); // undefined
$("#btn").click(function() {
pass = "323";
location.href = "test.php";
});
going to test.php console.log shows again undefined.
I need to keep pass value as 323 accross all pages, once it is estblished.