1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Exit Pop Up on site that Auto Refreshes?

Discussion in 'HTML & JavaScript' started by PersiaGrai, Feb 24, 2014.

  1. PersiaGrai

    PersiaGrai Registered Member

    Joined:
    Oct 20, 2013
    Messages:
    78
    Likes Received:
    8
    hey!

    Is it possible to install an exit pop up on a site that refreshes itself automatically?
     
  2. innozemec

    innozemec Jr. VIP Jr. VIP

    Joined:
    Aug 19, 2011
    Messages:
    5,288
    Likes Received:
    1,799
    Location:
    www.Indexification.com
    Home Page:
    yep, for sure

    just put some var to be set to something just before the refresh code and make the exit popup check for the value of that variable
    if the value is not set then it is not a refresh and trigger the popup, if it is set then it is the refresh closing the page so don't popup..