Hi,
I want to popup a message box to remain the user, when user click close/back/refresh button in browser.
Thanks in advance.
Shangar
You can use onunload or onbeforeunload events to get your work done. As I understand your idea is to not close or send the user to a different web page. If so you can do something like this:
event.returnValue = "Please do not leave.";
This will prompt a dialog box with Ok and Cancel buttons in it with your message.
Hi ,
Thanks this is working in IE only not working with Chrome , Fire Fox. do you have any suggestion for this?
shanga