I have an iframe with domain abc.com, embedded in a webpage with domain xyz.com. The iframe on click opens a url in new window(window.open() with domain abc.com(same as that of iframe). How can I send a message from the window opened by the iframe to the iframe?
window.opener is empty/null when accessed from the new window.
I know that we can use postMessage(), but window.opener is null. Can someone help me with this?
Localstorage is getting scoped to the popup and not reflecting in the iframes localstorage even though they have the same domain.