How can I check event clicking the 'X' button

S

Somyos

How can I check event clicking the 'X' button in the upper right hand corner
of a window.
and call function or sub before close web page.

I'm using Asp.net on VS.NET

Thank.
 
A

avnrao

this requires client side scripting

write a javascript function and call it on onbeforeunload event of body tag.

Av.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,434
Messages
2,571,691
Members
48,796
Latest member
Greg L.

Latest Threads

Top