Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Senior Coder durangod's Avatar
    Join Date
    Nov 2010
    Location
    East Texas USA
    Posts
    2,003
    Thanks
    342
    Thanked 54 Times in 52 Posts

    I noticed a new feature on webpages but i dont know the tech name for it

    Hi,

    First if i am late in the game and way behind coding techniques forgive me.

    Over the last week i have noticed that several of the websites that i visit have added a new (userside) feature. In the old days if you clicked on the X to leave the site sometimes you would get a popup or alert that asked if you really wanted to leave, that much i understand how to do.

    However, this new feature seems to be able to predict what you are about to do. For example, on the sites if i begin to move the mouse upward to exit the page, it knows what i am about to do and asks me to stay. Im sure it probably has something to do with either the speed of the mouse movement upward or the mouse entering the boundary above the webpage as in google toolbar area. But it seems to me that i have gotten this popup before i get to the google toolbar area above the page display.

    Does anyone know what this feature/process is called as i would like to read about it, i think its kinda cool.

    Thanks
    If a php file only has php code within it you do not need to use the closing php tag
    A good way to remember objects from arrays is you shoot objects with arrows Example: $name->id; then Arrays are $name['id'];
    durangod is short for durango dave

  2. #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    19,526
    Thanks
    219
    Thanked 2,710 Times in 2,685 Posts
    It is not kinda cool. It is another trick to try to keep the user on the page (and buy something).

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  3. #3
    Senior Coder deathshadow's Avatar
    Join Date
    Feb 2016
    Location
    Keene, NH
    Posts
    2,933
    Thanks
    3
    Thanked 416 Times in 405 Posts
    Yeah, it's kind of a sleazy thing... dirtbag move.

    But the simplest implementation I've seen is just a small position:fixed container across the top of the page (nothing in it, basically invisible) with a mouseover trigger on it, that goes 'live' and responds to mouse-over after a 20 second timeout.

    Tracking upwards mouse velocity isn't too hard to do either, combine the two and you have it... in all its scummy asshat piss off users "glory".
    “There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies and the other way is to make it so complicated that there are no obvious deficiencies.” – C.A.R. Hoare, The 1980 ACM Turing Award Lecture
    http://www.cutcodedown.com

  4. #4
    Senior Coder durangod's Avatar
    Join Date
    Nov 2010
    Location
    East Texas USA
    Posts
    2,003
    Thanks
    342
    Thanked 54 Times in 52 Posts
    Thanks all and thanks deathshadow for explaining. But i didnt mean it was kinda cool to use, i meant it was kinda cool that its possible and i just wanted to see the inner workings cause im curious that way about some things.
    If a php file only has php code within it you do not need to use the closing php tag
    A good way to remember objects from arrays is you shoot objects with arrows Example: $name->id; then Arrays are $name['id'];
    durangod is short for durango dave


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •