Welcome to WebmasterWorld Guest from 54.162.226.212

Forum Moderators: phranque

Message Too Old, No Replies

Popup window on leaving the domain?

     
2:30 pm on Dec 6, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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?

4:39 pm on Dec 6, 2001 (gmt 0)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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.
5:08 pm on Dec 6, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



we have one that we use when anyone uses an external link...is that the sort of thing you are looking for?
5:27 pm on Dec 6, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



See also:

[webmasterworld.com...]

 

Featured Threads

Hot Threads This Week

Hot Threads This Month