For a more modern solution check out https://stackoverflow.com/a/12514384/270274
Quote:
I’m sticking to the shared local data solution mentioned in the question using
localStorage. It seems to be the best solution in terms of reliability, efficiency, and browser compatibility.
localStorageis implemented in all modern browsers.The
storageevent fires when other tabs makes changes tolocalStorage. This is quite handy for communication purposes.Reference:
http://dev.w3.org/html5/webstorage/
http://dev.w3.org/html5/webstorage/#the-storage-event