Does anybody know if it is possible to check what page a user is leaving for when the OnBeforeUnload event fires. I want to notify users when they are actually leaving the current page but not when they are just reloading it.
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.
Nooo, that would be a huge security hole if the browser told the webpage where the user was going. I suppose it wouldn’t be a problem if the webpage were told only exactly what it is you want to know — this is/is not a reload — but nope, I can’t see how you could figure that out.