[Javascript] Non-Evil Exit Consoles

Rodney Myers rodney at aflyingstart.net
Sat Apr 26 05:17:43 CDT 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 at web-walrus.com
>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






More information about the Javascript mailing list