Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Control the close button of the browser ("X")
#1
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.
Reply
#2
In general no.
Reply
#3
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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)