Visitors leaving site

Results 1 to 2 of 2

Thread: Visitors leaving site

  1. #1
    Join Date
    Dec 1969

    Default Visitors leaving site

    Is it possible to determine if a visitor wants to leave an ASP site so that a script on the current site can perform some "clean up" actions before the visitor leaves? I am developing a system that has both "log on" and "log off" options, but am concerned that visitors will not always take the "log off" option, but instead might hit (for example) their Home Key, the Back Button, take a link from a Bookmark, or enter a new URL in the address line. What I&#039d like to do is "trap" each of these conditions and perform my "log off" routine before the visitor leaves. Any ideas?

  2. #2
    Sathiya Guest

    Default RE: Visitors leaving site

    you can use onUnload event to do clean up works.<BR>&#060;body onUnload="Something();"&#062;<BR>-----------<BR>funtion Something()<BR>{<BR>-------<BR>}

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts