If you're looking to store values between two pages in a user's browser, one option is to utilize JavaScript's localStorage()
object. For example, on page A, you could implement the following:
$(document).ready(function(){
$('a.PageALink').click(function(){
localStorage.setItem("PageAValue", $(this).text()); // Alternatively, you can use data attributes for storing values differently
});
Then, on Page B:
$(document).ready(function(){
$('a.PageBLink').text(localStorage.PageAValue);
});
This solution relies on jQuery, so make sure it is either already included on your page or that you are comfortable adding it. If using jQuery is not an option for you, feel free to specify any constraints you have regarding dependencies and scripting.