Suppose a javascript holds an object on page A (www.example.com/a.html)
Suppose the user clicks on page B (same domain) (www.example.com/a.html)
is it possible for the javascript on page B to access the object from a.html ?
I don’t want tricks to transfer the object, like posting to the webserver or adding parameters to the url.
Thanks,
E
p.s.
Just adding this ‘p.s.’ following some of the answers:
Using a cookie is not an option because the data on page A would be very very very large.
There’s no direct way for page B to access the object, because the object will no longer exist once page A is unloaded. As other answers note, you can store the object somewhere, and then page B can get a copy of the original object from page A.
A cookie is another alternative to local storage.