Exit Popup : On Up Mouse Movement towards Title Bar

johnt

New member
Aug 19, 2010
164
2
0
I'm looking for an exit pop-up (DHTML, whatever) that executes upon significant up-mouse-movement on page. I used to use a script like this 2 years ago but my google searching skills suck today. Any shout outs for this sort of thing?

The idea behind it is when people are mousing up to the address bar they are ready to leave, exit the page, etc. So DHTML comes up and you know the rest.

Thanks for URL references.
 


The idea behind it is when people are mousing up to the address bar they are ready to leave, exit the page, etc.

Except if they are moving there mouse around the screen or trying to change tabs etc.

The problem is you can never tell what the users intent is based on mouse movement.

I would attach an event handler to onbeforeunload then just redirect to another page or dynamically load html content.

Of course you have to deal with an alert, but at least you know for sure they want to leave.

If you want to force the user to view the page no matter what, then just attach the click event to the body. They click anywhere on the page and your window launches.
 
dchuk: thanks, good idea.

acidie: good point. I forgot about the user probably leaving our site open while they work in another tab. hmmm....
 
id like something like this, but id be pissed if it messed up my google rank... it prob would

I have run scripts like this, never had a problem with Google rank.

Why would you think it would cause a problem, maybe I'm missing something.