When the client closes the browser window
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Crazy_Gal
Posted On:   Sunday, April 21, 2002 11:51 PM

Is there anyway to warn the user when he closes the browser window..

Maybe something like "Are you sure you want to close this window?"

.. and if the user says No, a way to avoid the window being closed??


Failing that, is there anywat to display a message when the user closes the browser window?


Thanks

Sabira

Re: When the client closes the browser window

Posted By:   David_Liu  
Posted On:   Monday, April 22, 2002 06:54 AM

P.S. This is a javascript question, not servlet. And, you shouldn't post the same question is two different places.

Re: When the client closes the browser window

Posted By:   Bozidar_Dangubic  
Posted On:   Monday, April 22, 2002 04:29 AM

you can try with javascript. that is your only choice. and the message will the javascript message, a popup message box. but javascript is the only way to do it.
About | Sitemap | Contact