web-feature: postMessage

baseline logo Widely available

The postMessage() global method sends cross-origin messages to windows and workers, including popups and iframes. Also known as cross-document messaging.