what's the HTML code to load a specific URL on closing a window

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • H.I.G
    Confirmed User
    • Mar 2004
    • 926

    #1

    what's the HTML code to load a specific URL on closing a window

    Hi Guys,

    What's the HTML code to load a specific URL on closing a browser window. I am not talking about a pop-up but how do you load a different URL when a page is closed.

    What's the html code you need to insert to a page to get this right??

    Ex: If I close this GFY window how do I get a new windows to open up with www.google.com

    thanks..
  • Roald
    SecretFriends.com
    • May 2001
    • 27910

    #2
    so you do mean an exit popup?


    WE ARE BUYING PAY SITES! CONTACT ME



    ClubSweethearts | ManUpFilms | SinfulXXX | HOT * AdultPrime * HOT


    Paying webmasters since 1996! Contact: r.riepen @ sansylgroup.com | telegram: roaldr

    Comment

    • rowan
      Too lazy to set a custom title
      • Mar 2002
      • 17393

      #3
      Yeah, how can it not be a popup when the window has closed?

      Comment

      • PrivateIvy
        Confirmed User
        • Oct 2003
        • 4257

        #4
        You put this in your header:

        <script language="JavaScript">
        <!--
        var exit=true;
        function xit()
        {
        if (exit)
        open("http://www.blah blah blah .com","copy");
        }
        //-->
        </script>

        but you need to add onclick="exit=false" to any links on the page that keep your visitor on your site and you don't want the window opened




        Ivy

        Comment

        • H.I.G
          Confirmed User
          • Mar 2004
          • 926

          #5
          thanks Ivy

          Comment

          Working...