homepage Welcome to WebmasterWorld Guest from 54.166.255.168
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

    
Popup window on leaving the domain?
kapow

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 649 posted 2:30 pm on Dec 6, 2001 (gmt 0)

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

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



 
Msg#: 649 posted 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

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 649 posted 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?

msr986

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 649 posted 5:27 pm on Dec 6, 2001 (gmt 0)

See also:

[webmasterworld.com...]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved