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

{HELP} Need html code for Leave Page pop-up

Discussion in 'HTML & JavaScript' started by kingkomarac, Dec 25, 2015.

  1. kingkomarac

    kingkomarac Newbie

    Joined:
    Nov 1, 2015
    Messages:
    38
    Likes Received:
    3
    Occupation:
    Marketing
    Location:
    Croatia
    Hey guys, I've been trying out lots of codes but none work... So I ask for help..
    Need when person closes browser to pop up another window with a link that I put in..
    I found also some, but they get blocked by Mozilla and Chrome...
    Thanx ;)
    By the way ... Merry Xmasssssss !!!! :drinking8:peace:
     
  2. Bane Bentley

    Bane Bentley Jr. VIP Jr. VIP

    Joined:
    Jun 13, 2013
    Messages:
    180
    Likes Received:
    35
    Well, all modern browser come with pop-up blockers.

    Your script is still going to work on the older browsers though.

    If you want to bypass this, look into overlay messages and exit messages.
     
  3. revproxy

    revproxy BANNED BANNED Jr. VIP Premium Member

    Joined:
    Nov 20, 2015
    Messages:
    396
    Likes Received:
    100
    Gender:
    Male
    popup must be opened on user action like mouse click,
    add event listener to all document and on the first click open the popup.