How to show something similar to an alert like SO does here with javascript?
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’ll need to do ajax polling for the “load new answers” alert that appears whilst you are writing an answer.
Here’s a nice tutorial for ASP.NET using jQuery
For the alert when you attempt to navigate away from a page when you have started typing an answer/ editing a post, look at the
onunloadevent. Aconfirmdialog is used as opposed to analert