471,122 Members | 1,167 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,122 software developers and data experts.

Prompt when closing the browser window...

I want to ask the user if he/she is sure when he/she wants to close
the browser window. And I want to cancel the event if she is not sure.
I know this is possible, but I couldn't write the right code.
Jul 20 '05 #1
1 4763
rf

"Onur Bozkurt" <on**********@softhome.net> wrote in message
news:6a**************************@posting.google.c om...
I want to ask the user if he/she is sure when he/she wants to close
the browser window. And I want to cancel the event if she is not sure.
I know this is possible, but I couldn't write the right code.


Why do you want to close her browser window. If she wanted her browser
window closed then she would use the browser windows close functions,
file>exit, the kiss at top right, those sort of things.

Cheers
Richard.
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Display Name | last post: by
2 posts views Thread by Derek | last post: by
7 posts views Thread by Petesman | last post: by
7 posts views Thread by wrytat | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.