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

Need an Exit Redirect script

Discussion in 'General Scripting Chat' started by jdownloads, Jul 18, 2009.

  1. jdownloads

    jdownloads Junior Member

    Joined:
    Mar 25, 2008
    Messages:
    181
    Likes Received:
    168
    Location:
    Canada
    Home Page:
    Hey all, I am looking for a basic script or code I don't know. All I want to do is this; when someone visits one of my wordpress blogs and goes to leave my site all together, (not another one of my posts) I want to redirect that visitor to a diffrent website.

    Is this easy? Is there maybe even a wordpress plugin that might do this?

    A little direction would be appreciated. Thanks
     
  2. jdownloads

    jdownloads Junior Member

    Joined:
    Mar 25, 2008
    Messages:
    181
    Likes Received:
    168
    Location:
    Canada
    Home Page:
    any help? anyone?
     
  3. showboytridin

    showboytridin Regular Member

    Joined:
    Sep 5, 2009
    Messages:
    348
    Likes Received:
    714
    Location:
    127.0.0.1
    You can do that only with javascript. You need to find something similar, and adapt it. I don 't have any script like that, but I think that 's possible.
     
  4. webblackart

    webblackart Registered Member

    Joined:
    May 13, 2009
    Messages:
    60
    Likes Received:
    9
    i would say a part of that is possible but perhabs not the complete thing like you would like it.
    you can fire the onunload and onbeforeunload events but these will show up a message box. go to rude.com and click on register. there you will see a site that uses this. more is not possible else every page owner would block the visitors from leaven there site... would you like to restart your browser for every new page?
     
  5. mirzabilla

    mirzabilla Newbie

    Joined:
    Dec 19, 2012
    Messages:
    1
    Likes Received:
    0
    i have this script...but i can't write i here..always error..how to i can help you ?
     
  6. thedorf

    thedorf Senior Member

    Joined:
    Oct 1, 2008
    Messages:
    1,193
    Likes Received:
    700
    Occupation:
    what? I gotta have a job?
    Location:
    BHW - Where else?