Assuming you are talking about leaving page a.html and going to c.html (and not using iframes or something similar), then you have 3 options:
(1) Send the variable in a hash-style query string:
Code:
location.href = 'c.html#!delayy=' + delayy;
Then you'll need to read and parse the query string in c.html.
Code:
var hash = location.hash;
if(hash && hash.charAt(0) == '!') {
var hashInfo = hash.split('=');
if(hashInfo[0] == '!delayy') {
delayy = hashInfo[1];
alert('delayy is ' + delayy);
}
}
Note: You could also use a "?" style query string as long as you're using an HTTP server of some kind.
(2) Use a cookie to transfer the variable.
Look up document.cookie for more information on this.
(3) Use web storage.
Bookmarks