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] Non-Evil Exit Consoles


  • From: rodney at aflyingstart.net (Rodney Myers)
  • Subject: [Javascript] Non-Evil Exit Consoles
  • Date: Sat Apr 26 05:17:48 2003

Robert,

off  the "top of my head" a suggestion :
Make the exit routine dependent on a variable.
Set the variable false in the onClick of all internal links, but true 
onLoad of your pages.

hth

Rodney

Robert Wall wrote:

>I'm looking to do an exit console.  Here is the basic idea (in English
>pseudo-code) of what we want to do:
>
>if the visitor is leaving a page {
>  if they're going to somewhere else on our site {
>    do nothing;
>  }
>  if they're leaving our site completely {
>    pop up exit console;
>  }
>}
>
>Just using an onUnload() function to pop up the window gives them the
>window every time they click any link or refresh any page on our site,
>which gets annoying quickly.
>
>I want them to get the exit page, but only when they navigate completely
>away from our site.
>
>Does anybody have any ideas for doing this?  Any help you could offer
>would be greatly appreciated...
>
>-----
>Robert Wall						(715) 855-0189
>Systems Administrator                                   bob@xxxxxxxxxxxxxx
>Web Walrus Media
>
>  
>

-- 
PS. I have just bought a licence for Mike Chen's
BizAutomator. If you have to answer routine 
email queries from your sites or mailings then
you need this as much as I do. 
http://www.BizAutomator.com/rlbm51 

Rodney