oTree Forum >

How to force timeout in case of Pop Up 'Do you want to leave this page?'

#1 by nathalie

Hi everyone,

I integrated video calls in my app using an API via an iframe. I want to force them to end after 2 minutes.
 However, they are not redirected to the next page since through the API there is a Pop Up appearing asking whether they really want to leave the page. How can I enforce the timeout happening?
 Thank you for your help!

#2 by nathalie

If anyone else is encountering the same issue, I already found w working solution: Add sandbox="allow-scripts allow-same-origin" to your iframe.

Write a reply

Set forum username