show alert message when browser tab is closed
ASP.NET
3
Posts
3
Posters
0
Views
1
Watching
-
hi all, how to show confirm alert message when the user closes the browser tab in asp.net using javascript...
Ashok
-
hi all, how to show confirm alert message when the user closes the browser tab in asp.net using javascript...
Ashok
There is no straight forward way to achieve this. However, you can check the folowing link: http://aspadvice.com/blogs/getwhatyouwant/archive/2006/09/20/bypass-_2200_The-Web-page-you-are-viewing-is-trying-to-close-the-window_2200_-_2D00_-_2800_simple_2900_.aspx[^] Regards Saanj
Either you love IT or leave IT...
-
hi all, how to show confirm alert message when the user closes the browser tab in asp.net using javascript...
Ashok
var displayPrompt=true; if (displayPrompt){ event.returnValue = "are you sure to close?"; }