Exit window script problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • HighRoller
    Confirmed User
    • Feb 2003
    • 1037

    #1

    Exit window script problem

    I must have changed something, this use to work, and now it doesn't, what am I doing wrong?


    <hahahahahahahaha
    var exit = true;
    function leave() {

    if (exit) {

    window.open('http://www.url.com');

    }

    }
    </hahahahahahahaha








    onUnload="leave()" onclick="exit=false">
  • HighRoller
    Confirmed User
    • Feb 2003
    • 1037

    #2
    I have the script tags in there it didn't post

    Comment

    • juicylinks
      So Fucking Banned
      • Apr 2001
      • 122992

      #3
      you are missing a few {

      and your } are in bad postions

      and some of your { should really be }

      Comment

      • Mr Pheer
        So Fucking Banned
        • Dec 2002
        • 22082

        #4
        you put the onclick="exit=false" in the href and not in the body tag right?

        Comment

        • Mr Pheer
          So Fucking Banned
          • Dec 2002
          • 22082

          #5
          var exit = true;
          function playo() {
          if (exit) {
          window.open('http://www.getfreepassword.com');
          }
          }

          dont forget the j a v a tags that go before and after

          Comment

          • HighRoller
            Confirmed User
            • Feb 2003
            • 1037

            #6
            I did put the last part in body tags

            Comment

            Working...