How to establish a connection between tabs of the same origin?

A policy of the same origin determines that scripts on different pages are allowed only to access each other, if and only if the pages that executed them are in places with the same protocol, port number and host.

Given two independently open pages in the same source, is it possible for these two pages to be able to share scripts?

+4
source share
1 answer

localStorage is common to all open source instances, and the storage event is fired in all of these cases when only one of them changes localStorage . This way you can identify and send messages to other instances of your site.

+6
source

All Articles