Communication between tabs or windows
You may better use BroadcastChannel for this purpose. See other answers below. Yet if you still prefer to use localstorage for communication between tabs, do it this way: In order to get notified when a tab sends a message to other tabs, you simply need to bind on ‘storage’ event. In all tabs, do this: … Read more