DEV Community

Discussion on: Send data between tabs with JavaScript

Collapse
 
khrisl33t profile image
kHRISl33t

I had to implement a similar thing before for a chat application where we stored the chat state in local storage. I went with the window.addEvenLister('storage') approach because I had to support IE 11 and Safari.

Hope BroadcastChannel will get more support on older browsers, it seems nice and simple. :)

Collapse
 
vitkarpov profile image
Viktor Karpov

I made a tiny cross-browser lib (github.com/vitkarpov/tabs-channel) for that. Works even on different domains.