07-13-2020, 10:23 AM
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.