Stats

191 Contributors: 2 Sunday, August 7, 2016
Licensed under: CC-BY-SA
Not affiliated with Stack Overflow
Rip Tutorial: riptutorial@gmail.com
Roadmap: roadmap

.postMessage() and MessageEvent

Syntax

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

Parameters

Parameters 
message 
targetOrigin 
transferoptional

Related Examples