Is it possible to trigger a JavaScript function when a user tries to reload the current page?
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.
you mean confirm an “unload” whereby execute a function before the user leaves the current page.
OR
the jQuery version http://api.jquery.com/unload/