# Importing notebook issue, never get onload event

**URL:** <https://talk.observablehq.com/t/importing-notebook-issue-never-get-onload-event/6093>\
**Category:** Help\
**Created:** [January 18, 2022, 9:21pm UTC](https://talk.observablehq.com/t/importing-notebook-issue-never-get-onload-event/6093 "2022-01-18T21:21:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![scottyd](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/scottyd/32/5454_2.png) [@scottyd](https://talk.observablehq.com/u/scottyd)\
**Post date:** [January 18, 2022, 9:21pm UTC](https://talk.observablehq.com/t/importing-notebook-issue-never-get-onload-event/6093/1 "2022-01-18T21:21:05Z")

</div>

I am using the Runtime with Javascript export to get the notebook code.

If I insert that into a vanilla test web page it works fine. The page I need to insert it into is an iframe in a div and I use the onload event to make it visible.

tab.find(“iframe”).last().onload = function () {  
this.css(‘visibility’, ‘visible’);  
}  
I never get the onload event? I load some tiny and huge web pages using this method and haven’t had any issues before.

I tried using the iframe export for the notebook code and still never get the onload event?

any ideas?

thanks,

Scott

---

<div class="post-metadata">

**Author:** ![scottyd](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/scottyd/32/5454_2.png) [@scottyd](https://talk.observablehq.com/u/scottyd)\
**Post date:** [January 19, 2022, 12:58am UTC](https://talk.observablehq.com/t/importing-notebook-issue-never-get-onload-event/6093/2 "2022-01-19T00:58:55Z")

</div>

As usual I have shot myself in the foot. This is not a problem with observable.
