On browser close update database
i want to update my database when ever user closes the browser (firefox and IE). how can i achieve this
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
SenthilkumarRank #387 · 6.5K reputationPosted May 10, 2012, 11:31 PM EDT
you need to write the javascipt event,
V S N Raju KanumuriRank #8,839 · 215 reputationPosted May 11, 2012, 1:44 AM EDT
this may be helpful to u
nishant ranjanRank #4,961 · 317 reputationPosted May 11, 2012, 11:35 PM EDT
V S N Raju KanumuriRank #8,839 · 215 reputationPosted May 12, 2012, 1:56 AM EDT
small change in above code
instead of
nishant ranjanRank #4,961 · 317 reputationPosted May 15, 2012, 1:12 AM EDT
V S N Raju KanumuriRank #8,839 · 215 reputationPosted May 15, 2012, 3:24 AM EDT
It's working fine in my system.Paste your code here and i will check it