Atozed Forums

Full Version: Control the close button of the browser ("X")
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
In general no.
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.