'can windows.addevenlistener grab url of other domain popup window to parent window?

What exactly are the options that let addevenlisteners to have one way connection from child popup window to parent window

with respect to content security policy

what else can it do to take advantage to have one way communication

between two open windows of different domains

  var popup = parent.window.open("google.com", "", "width=2600,height=2500");
  popup.addEventListener("message", function () {
      console.log("popup window received message");
  });

lets say for instance

this one when the popup gets triggered
we can see the message in the console that popup window recieved message

considering this, is there any method in addeventlistener which listens when the url is changed in the child window shoudld be able to sent the changed url back to parent window

or any possible methods that might work ??



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source