> For the complete documentation index, see [llms.txt](https://docs.digitalsamba.com/reference/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digitalsamba.com/reference/sdk/events/frameloaded.md).

# frameLoaded

Emitted when the iframe has finished loading -> corresponds to the iframe onload event.

{% hint style="danger" %}
Do **NOT** manually subscribe to the **sambaFrame.frame.onload** event, because it will override the internal handler of our SDK and app won't function. Subscribe to the **frameLoaded** instead as shown if you want to listen to the **onload** event of the iframe.
{% endhint %}

#### Sample subscription code

```javascript
sambaFrame.on('frameLoaded', () => {
  console.log('The iframe has been loaded');
});
```
