Pause online experiment if interrupted

Hello,

I’m wondering if it is possible to have an experiment running on Pavlovia to automatically pause if it is interrupted. This issue came up when I was piloting my experiment, and had my email open in another tab in the same browser window, and when I received an email as I was going through the experiment it took me automatically to my email tab. Since I am running a reaction time experiment this issue is particularly concerning to me.

Alternatively, is there any way to ensure participants do not have any open tabs in the browser that may interfere with the flow of the experiment?

Thanks!
Daniel