JavaScript.postMessage() and MessageEvent

Download JavaScript for free

Syntax

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

Parameters

Parameters 
message 
targetOrigin 
transferoptional

Related Examples

Getting Started