Forum Moderators: open

Message Too Old, No Replies

pop up window when user leaves page

         

krups

9:16 pm on Oct 18, 2005 (gmt 0)

10+ Year Member



this isn't my favorite functionality, but the client seems to want this. the idea is to have an optional survey presented to the user when they leave the site.

ideas on where to look for implementation? mostly i'm not sure what event to use to trigger the javascript.

thanks,
-Andy

garann

9:22 pm on Oct 18, 2005 (gmt 0)

10+ Year Member



You can use the
onunload
event for this. It's a little inconsistent, but it usually fires.

this isn't my favorite functionality, but the client seems to want this

This might be a win/win situation for you! Most pop-up blockers stop this kind of thing. So you can put it there, but anyone who feels as you do and uses a blocker won't see it. And, presuming your client isn't in that group, he or she will see it and be happy.