Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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: ObjectThe message to post.
targetOrigin
Type: StringThe 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: ObjectA 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.