I have this iframe (different domain) inside my page. I have also this script that is supposed to close the page when some conditions are verified.
I encountered the problem that when the page inside the iframe changes the onbeforeunload method asking me the confirmation, the script obviously freezes wainting for a response. I tried to avoid that dialog with no success.
Is there a way to answer to the confirmation dialog automatically or to suppress it ?