For example, I have two copies of a page; both of which contain same jquery code. Something like:
$(document).ready(function () {
var flag = 0;
$('#anchor').click(function () {
flag = 1;
});
})
When I am on Page1 and clicked #anchor, the flag value changed to 1. Now if I return to Page2, I need the flag value to get modified, depending upon the action performed on Page 1; and vice versa. i.e. Modifying a variable on one page should update itself globally for all pages. How can this be done?
Any help is most appreciated. Thanks in advance


