They use a standard html event : Body_OnUnload.
http://www.htmlcodetutorial.com/docu..._onUnload.html
Juan T. Llibre, asp.net MVP
asp.net faq :
http://asp.net.do/faq/
foros de asp.net, en espaņol :
http://asp.net.do/foros/
======================================
"daveh551" <(E-Mail Removed)> wrote in message news:204a3f91-4c42-48a3-b53c-(E-Mail Removed)...
> Okay, I feel like this is probably a stupid question, but...
>
> I have accessed sites that are pushing some scam that, when you go to
> leave the page it will pop up a box saying, "No, don't go, let our
> live agent talk you into buying our junk."
>
> My question is, what event do they use to tell that you are leaving
> the page? Looking through the events available in the Page class, I
> see a lot that take place when the page is initiated, but nothing that
> is triggered when the user leaves.
>
> What am I missing?
>
> Thanks for your help.