469,628 Members | 1,039 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,628 developers. It's quick & easy.

Capturing close operation when we click on window close button..............

Hi All,

I have a window.open() popup.In which I placed an "Close" button.when I
Click on that "Close" button it will pass some information to the Database and after that the window will be closed.But if we click on the windows close button
the information which i want to send to the DataBase is not working properly.

So if can capture that close event in that i will call me own Function.

I will be vey much thankfull, if any help regarding this.

Regards,
Nageshwar Rao.A
Aug 27 '07 #1
2 3447
dmjpro
2,476 2GB
Hi All,

I have a window.open() popup.In which I placed an "Close" button.when I
Click on that "Close" button it will pass some information to the Database and after that the window will be closed.But if we click on the windows close button
the information which i want to send to the DataBase is not working properly.

So if can capture that close event in that i will call me own Function.

I will be vey much thankfull, if any help regarding this.

Regards,
Nageshwar Rao.A
Look what I did in IE, capturing the close event by body.onbeforeunload.
But it is only possible only in IE.
So that's why you have no other options except implementing it in IE only.

Kind regards,
Dmjpro.
Aug 27 '07 #2
gits
5,390 Expert Mod 4TB
Look what I did in IE, capturing the close event by body.onbeforeunload.
But it is only possible only in IE.
So that's why you have no other options except implementing it in IE only.

Kind regards,
Dmjpro.
as far as i know ... the event is built in moz since version 1.7. actual FF/Moz are working with this event ... i'm not really sure about opera and safari but i think safari 2.0 and opera 9 have support for it too?

kind regards
Aug 27 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

8 posts views Thread by william | last post: by
2 posts views Thread by anil kumar via .NET 247 | last post: by
4 posts views Thread by Hitesh | last post: by
37 posts views Thread by Jan Tovgaard | last post: by
4 posts views Thread by miha.vitorovic | last post: by
4 posts views Thread by bsm | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.