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: javascript at mattbarton.org (Matt Barton)
  • Subject: [Javascript] Determining when a person leaves your domain
  • Date: Wed Jun 22 08:56:40 2005

Hi,

I think there's probably some milage in considering Mike's suggestion to 
"let people choose [the survey link] voluntarily through an easily 
visible link".

I can't personally think of an all-encompassing JavaScript solution to 
your goal, but even if one existed (which I doubt), it would be 
worthless for any visitor to your site who has JavaScript disabled (and 
there are plenty of those out there).  Such visitors wouldn't know about 
your survey unless there was a clear link to it.

FWIW

Matt


Jessica Mays wrote:
> Annoyance is one of the reasons I want to make this come up as little as possible.  
> 
> And this is for a survey so the confirm box just asks if you would like to survey or not and if no you go on your merry way and if you say yes you are sent to the survey.   This is an simple opt-in, and I am trying to keep annoyance to the lowest level possible.
> 
> 
> -------------------------
> 
> Jessica Mays
> Graphic Designer
> WebSurveyor Corporation
> Tel.:  703.481.9326    x.248
> -----Original Message-----
> From: javascript-bounces@xxxxxxxxxx [mailto:javascript-bounces@xxxxxxxxxx] On Behalf Of Mike Dougherty
> Sent: Wednesday, June 22, 2005 9:28 AM
> To: [JavaScript List]
> Subject: Re: [Javascript] Determining when a person leaves your domain
> 
> 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
> 
> 
> _______________________________________________
> Javascript mailing list
> Javascript@xxxxxxxxxx
> https://lists.LaTech.edu/mailman/listinfo/javascript
> _______________________________________________
> Javascript mailing list
> Javascript@xxxxxxxxxx
> https://lists.LaTech.edu/mailman/listinfo/javascript
> --
> This email has been verified as Virus free
> Virus Protection and more available at http://www.plus.net
>