I was reading this article in google-chrome and when I moved mouse to the close icon(x) on tab, web page displayed me a popup to wait, so my question is how do webpage knows I am going to close this tab, which javascript event it is?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s this script. And by using this deobfuscator. You can see its source, and I’m guessing this is what you’re looking for.
Script Source