JavaScript.postMessage() and MessageEvent

Syntax

  • windowObject.postMessage(message, targetOrigin, [transfer]);
  • window.addEventListener("message", receiveMessage);

Parameters

Parameters 
message 
targetOrigin 
transferoptional