Atozed Forums
Control the close button of the browser ("X") - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Control the close button of the browser ("X") (/thread-1791.html)



Control the close button of the browser ("X") - a.palladino - 07-10-2020

Hi,
Is it possible to block the closing of the browser ("X" button) before all the tasks are completed? (similar to the VCL forms OnCloseQuery event)
Thanks.


RE: Control the close button of the browser ("X") - kudzu - 07-10-2020

In general no.


RE: Control the close button of the browser ("X") - Alexandre Machado - 07-13-2020

No way you can do that. Browsers are created to avoid that JavaScript or any other trick can block the user from closing the page or the whole browser. Doesn't matter what trick you read on the internet, it won't work.