# IFrame and load event

**URL:** <https://talk.observablehq.com/t/iframe-and-load-event/3871>\
**Category:** Uncategorized\
**Created:** [September 12, 2020, 8:13pm UTC](https://talk.observablehq.com/t/iframe-and-load-event/3871 "2020-09-12T20:13:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mootari](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mootari/32/581_2.png) [@mootari](https://talk.observablehq.com/u/mootari)\
**Post date:** [September 13, 2020, 9:23am UTC](https://talk.observablehq.com/t/iframe-and-load-event/3871/2 "2020-09-13T09:23:20Z")

</div>

Have you considered using viewof? That way you could add the iframe to the DOM (within the cell wrapper) and still return a promise as value. It would also allow you to wrap iframe modifications in a custom API.

---

_[View the full topic](https://talk.observablehq.com/t/iframe-and-load-event/3871)._
