u can use onBeforeUnload event.
Here u can ask for confirmation for closing.
If u want I can post code.
~Abhijeet
----- Original Message -----
From: <arsal01@h...>
To: "javascript" <javascript@p...>
Sent: Tuesday, October 29, 2002 4:13 PM
Subject: [javascript] Alert Window
> before the window close i want to pop up a message telling user that the
> window will going to close - select yes/NO - how would i do that and then
> respective action depending what the user chose
>
>
> arsalan
>
> ---
>
> Improve your web design skills with these new books from Glasshaus.
>
> Usable Web Menus
> http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> r-20
> Constructing Accessible Web Sites
> http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
> http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20