controlling browser scrolling

I was showing an Observable notebook to people today, to introduce code. I added an iframe which contained the reference to a simple patch:

The problem is that sometimes when I am in the middle of the notebook, some event (a popup?) is controlling Firefox and causing a sudden shift in the browser to go to the frame. Here is the observable notebook with the example at the very end:

Is there a way so that I can stop from controlling the browser through, presumably, a pop up notification event? It breaks the notebook narrative flow.

I ended up removing the iframe because I was unable to find a way to stop it autoscrolling to the location within the observable notebook