postMessage method
Asynchronously posts the provided message to the message queue of the target window corresponding to the MSAppView object.
Syntax
MSAppView.postMessage(message, targetOrigin, ports);Parameters
- message
-
Type: Object
The message to post.
- targetOrigin
-
Type: String
The target URI. If the targetOrigin matches the window’s origin, then the target window’s message event includes the message value in its event args.
- ports [optional]
-
Type: Object
A JavaScript array of MessagePort objects to send to the receiving MessagePort.
Return value
This method does not return a value.
Remarks
This method is supported only for Windows Store apps.
See also
Show: