Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm sorry for OT, but the kano.me link does a strange thing I notice lots of websites started doing recently. The moment you move your mouse to close the window it creates a popup. Why, and how? I feel really naive asking this but do websites now track the pointer position?


That's the dreadful "call to action" popups every SEO "guru" recommends you to add to your Wordpress site:

http://www.jeffbullas.com/2015/09/16/10-popup-calls-to-actio...

I do hate and actively block them.


It's likely a "mouseout" event to detect when the mouse has left the window. Though I haven't checked the source to verify, so take with a grain of salt.


In Chrome you can find it out by searching for 'exit-intent' event and setting a breakpoint on that. They use the mouseleave event on an element that covers the whole page. When your mouse leaves the web page viewport it will trigger that.

Neat, and annoying as heck.



I have never implemented this but I think they just add a 1 pixel div element at the top of the window and detect a mouseover event.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: