> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cdp.coinbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# sendIframeMessage

```ts theme={null}
function sendIframeMessage<T>(el: null | HTMLIFrameElement, message: T): void;
```

Sends a message to an iframe.

## Type Parameters

| Type Parameter                                                       |
| -------------------------------------------------------------------- |
| `T` *extends* `Record`\<`string` \| `number` \| `symbol`, `unknown`> |

## Parameters

| Parameter | Type                          | Description                                |
| --------- | ----------------------------- | ------------------------------------------ |
| `el`      | `null` \| `HTMLIFrameElement` | The iframe element to send the message to. |
| `message` | `T`                           | The message to send to the iframe.         |

## Returns

`void`
