Exit alert box with javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • st0ned
    Confirmed User
    • Mar 2007
    • 8437

    #1

    Exit alert box with javascript

    I have been searching high and low but can't seem to find what I am looking for. Basically I want an alert box with ok/cancel or yes/no to popup when someone exits my website. Say I were to have the alert say "Do you want 100% FREE PORN?"'' and they click ok it takes them to porn.com, but if they click cancel it just exits. Can anyone help me on this subject?? It is irritating the shit out of me. Any help would be appreciated!
    Conversion Sharks - 1,000+ adult dating offers, traffic management, and consistently high payouts.
    We will guarantee and beat your current EPC to win your dating traffic!
    Skype: ConversionSharks || Email: info /@/ conversionsharks.com
  • st0ned
    Confirmed User
    • Mar 2007
    • 8437

    #2
    Bump. Nobody knows?? I will pay for the info if I must :P
    Conversion Sharks - 1,000+ adult dating offers, traffic management, and consistently high payouts.
    We will guarantee and beat your current EPC to win your dating traffic!
    Skype: ConversionSharks || Email: info /@/ conversionsharks.com

    Comment

    • st0ned
      Confirmed User
      • Mar 2007
      • 8437

      #3
      Bumpage
      Conversion Sharks - 1,000+ adult dating offers, traffic management, and consistently high payouts.
      We will guarantee and beat your current EPC to win your dating traffic!
      Skype: ConversionSharks || Email: info /@/ conversionsharks.com

      Comment

      • Cap'n Steve
        Registered User
        • Feb 2005
        • 13

        #4
        Try something like this (untested):

        <body onunload="if (confirm('Do you want free porn?')) {window.location.href='porn.com';}">

        Comment

        • aidantrent
          beep
          • Nov 2005
          • 236

          #5
          Why in the world would someone who's leaving your site be interested in whatever else you have to offer them?
          JustPicsPlease - Search millions of porn pics
          (Or thousands of porn tubes, if that's your style.)

          Both sites are desktop- and mobile-friendly.

          Comment

          • st0ned
            Confirmed User
            • Mar 2007
            • 8437

            #6
            Originally posted by aidantrent
            Why in the world would someone who's leaving your site be interested in whatever else you have to offer them?
            I run shock sites, 80% of my visitors click away immediately due to the nature of the sites :P But they get some 55k+ visits daily.
            Conversion Sharks - 1,000+ adult dating offers, traffic management, and consistently high payouts.
            We will guarantee and beat your current EPC to win your dating traffic!
            Skype: ConversionSharks || Email: info /@/ conversionsharks.com

            Comment

            • st0ned
              Confirmed User
              • Mar 2007
              • 8437

              #7
              Originally posted by Cap'n Steve
              Try something like this (untested):

              <body onunload="if (confirm('Do you want free porn?')) {window.location.href='porn.com';}">
              Thanks for the help, It did popup with the question when I exited, But it didnt launch the URL when I clicked yes. Any ideas?
              Conversion Sharks - 1,000+ adult dating offers, traffic management, and consistently high payouts.
              We will guarantee and beat your current EPC to win your dating traffic!
              Skype: ConversionSharks || Email: info /@/ conversionsharks.com

              Comment

              • st0ned
                Confirmed User
                • Mar 2007
                • 8437

                #8
                Originally posted by Cap'n Steve
                Try something like this (untested):

                <body onunload="if (confirm('Do you want free porn?')) {window.location.href='porn.com';}">
                This works if they navigate away from my page to another URL, But not if they close the window. How would I get it to open a new window?
                Conversion Sharks - 1,000+ adult dating offers, traffic management, and consistently high payouts.
                We will guarantee and beat your current EPC to win your dating traffic!
                Skype: ConversionSharks || Email: info /@/ conversionsharks.com

                Comment

                • st0ned
                  Confirmed User
                  • Mar 2007
                  • 8437

                  #9
                  Bumpppppp. I will pay $20 via epassporte to the person who gets this working for me
                  Conversion Sharks - 1,000+ adult dating offers, traffic management, and consistently high payouts.
                  We will guarantee and beat your current EPC to win your dating traffic!
                  Skype: ConversionSharks || Email: info /@/ conversionsharks.com

                  Comment

                  • Dreamkellyporn
                    Confirmed User
                    • Feb 2007
                    • 209

                    #10
                    bump biotch

                    Comment

                    • Cap'n Steve
                      Registered User
                      • Feb 2005
                      • 13

                      #11
                      I'm not sure if you can do anything about a closing window. You might have to add http: // (remove the space, holy crap this forum sucks) in front of the url in my example, the forum doesn't approve of me posting links.

                      Comment

                      • st0ned
                        Confirmed User
                        • Mar 2007
                        • 8437

                        #12
                        Originally posted by Cap'n Steve
                        I'm not sure if you can do anything about a closing window. You might have to add http: // (remove the space, holy crap this forum sucks) in front of the url in my example, the forum doesn't approve of me posting links.
                        Yeah I tried it that way also with no success. Thanks for trying. If you figure out how to do it let me know and I will send ya $20
                        Conversion Sharks - 1,000+ adult dating offers, traffic management, and consistently high payouts.
                        We will guarantee and beat your current EPC to win your dating traffic!
                        Skype: ConversionSharks || Email: info /@/ conversionsharks.com

                        Comment

                        Working...