---
url: >-
  https://game-engine-io.github.io/enginex-frontend-sdk/reference/api/@getenginex/sdk-igaming/first-frame/interfaces/FirstFrameTarget.md
---
[Reference](../../../../index.md) / [@getenginex/sdk-igaming/first-frame](../index.md) / 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

> `readonly` **contentWindow**: { `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

> `readonly` **src**: `string`

URL loaded in the iframe (the session's `launchUrl`). The trusted origin comes from it.
