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: jmays at websurveyor.com (Jessica Mays)
  • Subject: [Javascript] Determining when a person leaves your domain
  • Date: Wed Jun 22 08:03:58 2005

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