EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

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

MSAppView

 

 

Build date: 12/16/2013

표시:
© 2014 Microsoft