Exploring the Broadcast Channel API for cross-tab communication | MDN Blog
Briefly

Now you can open two browser windows or tabs side by side. Add a note on one page in the application, the note appears in the second tab without the need to refresh. Try resetting all the notes, and you will see the notes get deleted from both the tabs without refreshing.
At the end, a new BroadcastChannel is created with the name 'notes-channel', allowing communication between different windows/tabs that share the same origin. The event listener for BroadcastChannel listens for message events from the channel and takes action accordingly.
Read at MDN Web Docs
[
]
[
|
]