Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Determining when a person leaves your domain


  • From: mdougherty at pbp.com (Mike Dougherty)
  • Subject: [Javascript] Determining when a person leaves your domain
  • Date: Wed Jun 22 08:25:49 2005

fwiw:  I usually am so annoyed by this practice that I would never return to your site.

Imagine trying to leave a real-world store and being pestered by the cashier with "Why are you 
leaving?"  I would suggest you spend more effort on keeping people interested in your site, than 
to bug them with more annoying behavior as they try to leave.  If you're doing a survey to improve 
the site, let people choose it voluntarily through an easily visible link.  You'll probably get 
better information than from people who have already tried once to leave...

On Wed, 22 Jun 2005 09:03:48 -0400
  "Jessica Mays" <jmays@xxxxxxxxxxxxxxx> wrote:
>Hi all,
>
>In JavaScript is it possible to determine when a person leaves your
>domain?  
>
>I have a function that will go off on onunload that brings up an confirm
>box that I can turn off if a person uses a link that I have a little bit
>of JavaScript on.  But if the person uses their back button, address bar
>to a local page, or refreshes the page it still goes off.
>
>Goal: to be able to check if they are going to a page on your site (then
>no confirm box) or off of your site (then a confirm would appear)
>
>Thanks!
>
>-------------------------
>
>Jessica Mays
>Graphic Designer
>WebSurveyor Corporation
>_______________________________________________
>Javascript mailing list
>Javascript@xxxxxxxxxx
>https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
>__________________________________________________________
>This message was scanned by ATX
>9:04:20 AM ET - 6/22/2005