A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Pop up an alert or confirm message when the browser is closed
Joined: Feb 25, 2011
Jul 30, 2011 10:34:24
I want to pop up a question(alert) when the window(that is browser ) is closed.
Once the user accepts or clicks on "Yes" the the browser needs to be closed.
Can anybody help me with this.
Any help is highly appreciated !!!
Author and ninkuma
Joined: Jan 10, 2002
Jul 30, 2011 11:51:45
question at all, so I've moved this to HTML forum.
And if you search around, you will see that the answer is :you can't". There is no reliable way to trail that the browser is being closed.
Asking smart questions
Books by Bear
Joined: Nov 08, 2001
Aug 01, 2011 08:12:18
Gets prompted for more than closing the windows and there really is no way to detect it.
I agree. Here's the link:
subject: Pop up an alert or confirm message when the browser is closed
Need urgent Help - Browser is hanging
Session Time out
can closing a window fire an event
Has anybody forund an answer-Browser window closing
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015