Javascript exit script

Discussion in 'Programming' started by hartwm, Feb 13, 2010.

  1. #1
    Ok I built my first affiliate site and I am looking to do two things

    1) add a basic pop when you exit. a real simple ok or cancel options...
    2) on the ok redirect i want it to go to another page with a special offer, but i want that page to be private (but not have to put in a password, like cookie controlled or something of that nature) ... i just dont want people to be able to go back to that page directly after they leave

    thanks so much for the help... i have already searched google and i find a bunch of bs programs so please send links to relevant articles or paste code, no software
     
    hartwm, Feb 13, 2010 IP
  2. bogdanas

    bogdanas Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What do You mean by "exit"? Close the browser? pushing back in browser? Typing another URL in browser? Clicking on the link? Anyway, all these popups "are You sure You want to leave?" really sucks...
     
    bogdanas, Feb 16, 2010 IP
  3. hartwm

    hartwm Member

    Messages:
    141
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    30
    #3
    i mean any of the above...trying to exit the page onunload... and i dont care about your opinions, i already stated its a sales site...

    ...solution has been found please close thread
     
    hartwm, Feb 16, 2010 IP