Link to home
Start Free TrialLog in
Avatar of zeke20
zeke20

asked on

Executing Javascript Function on Browser Close

I want to invoke/execute a Javascript Function to perform some DB clean-up activity when a user closes his IE browser by clicking on the X (i.e browser close) in the upper right-hand corner of the browser.

Can you give me some idea how I can accomplish this?

Thanks

zeke20
ASKER CERTIFIED SOLUTION
Avatar of tzxie2000
tzxie2000
Flag of China image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
this may more better
 MessageBox.Show(Today.ToString("MMMM yyyy"))
sorry for worry enter the comment
it's confused you
I am very sorry

some suggestion for your question
using unload event?!
using html under below

<body ... onload="alert('welcome')" onunload="alert('byebye')">

replace alert function to your java script function