5 ms·
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
by Paul_S 10y ago
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?
- lethargic_meat 10y agoThat'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-action-readers-wont-able-resist/ http://www.jeffbullas.com/2015/09/16/10-popup-calls-to-actio... I do hate and actively block them.
- kennethko 10y agoIt'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.
- madhato 10y agoI 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.
- paulddraper 10y agohttps://developer.mozilla.org/en-US/docs/Web/Events/mousemove https://developer.mozilla.org/en-US/docs/Web/Events/mousemov...
- MzHN 10y agoIn 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.