I would like to create a pop-up window that appears when a person leaves the website. I know that this could be done easily with a framed site but I do not wish to use frames for SEO reasons.
Can this be done with JavaScript?:
On UnLoad (if the loaded page is MyDomain.com/anything.htm) then don't popup (else popup)
Or any other way?
jatar_k
4:39 pm on Dec 6, 2001 (gmt 0)
one way I have seen it is putting a frame around the site and it has the on unload in its body tag so that it only pops up when they destroy the frame. I hate to use frames but this does work if you need to do it differently. The check to see if the domain has changed is, by far, a prettier and more functional answer.
Eric_Jarvis
5:08 pm on Dec 6, 2001 (gmt 0)
we have one that we use when anyone uses an external link...is that the sort of thing you are looking for?