0

I have below scenario

  1. www.site1.com is opened in one browser window/tab (Which is my website)
  2. www.customersite.com, opened in another browser which is client website.

I have full control over site1.com and I can give a script to embed in the www.customersite.com.

I wanted to inform www.customersite.com whenever www.site1.com is opened in another window. And when www.customersite.com gets to know that www.site1.com is opened, it will transmit some data to mysite1 server

I tried https://github.com/pubkey/broadcast-channel but it is only working when both the window are from same origin.

Is there a any way i can achieve this communication? Is there a way to identify site1.com is opened in another window?

If this is not possible is there amy other way to achieve the same?

Shiv
  • 199
  • 5
  • 16

0 Answers0