3 ms·
yes, the localstorage is the way to go You save stuff to localstorage in one tab, and in other tab you listen to "storage" event: window.addEventListener(
by jakub_g 10y ago
yes, the localstorage is the way to go
You save stuff to localstorage in one tab, and in other tab you listen to "storage" event:
window.addEventListener('storage', function() {..})
[0] https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API/Using_the_Web_Storage_API https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage...
[1] https://developer.mozilla.org/en-US/docs/Web/Events/storage https://developer.mozilla.org/en-US/docs/Web/Events/storage
Another option is shared web workers, though I never used it.
[2] http://stackoverflow.com/questions/12107424/communication-between-browser-tab http://stackoverflow.com/questions/12107424/communication-be...
[3] https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker https://developer.mozilla.org/en-US/docs/Web/API/SharedWorke...
I confused things in my other comment (I deleted it)