Reference / @getenginex/sdk-igaming/first-frame / FirstFrameTarget
FirstFrameTarget
The FIRST iframe, with the minimum the helper uses: an HTMLIFrameElement is assignable. The expected origin and the destination of the messages come from src (re-read on every message).
Properties
contentWindow
readonlycontentWindow: {postMessage:void; } |null
The iframe's window; null while it is not in the document.
Union Members
Type Literal
{ postMessage: void; }
postMessage()
postMessage(
message,targetOrigin):void
Sends a message to the iframe.
Parameters
message
string
targetOrigin
string
Returns
void
null
src
readonlysrc:string
URL loaded in the iframe (the session's launchUrl). The trusted origin comes from it.