postMessage method

  1. @DomName('Window.postMessage')
  2. @DocsEditable()
void postMessage(Object message, String targetOrigin, [ List<MessagePort> transfer ])

Sends a cross-origin message.

Other resources

Source

@DomName('Window.postMessage')
@DocsEditable()
void postMessage(Object message, String targetOrigin,
        [List<MessagePort> transfer]) =>
    _blink.BlinkWindow.instance.postMessage_Callback_3_(
        this,
        convertDartToNative_SerializedScriptValue(message),
        targetOrigin,
        transfer);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/Window/postMessage.html