Is there a way to redirect to two different sites at same time?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • duk75
    Confirmed User
    • Feb 2012
    • 741

    #1

    Is there a way to redirect to two different sites at same time?

    I would like to redirect a page to two different sites, one would open in the same window, and the other in a new tab or window.

    How can I do this?

    I don't want that the user click to get the other site or both, I want that when the user go to some URL then the URL launches two different pages.

    It seems very similar, if not the same, to an old fashioned pop up...

    How do I do this?
    ...Nice.
  • EddyTheDog
    Just Doing My Own Thing
    • Jan 2011
    • 25433

    #2
    I could be wrong - I would guess that you would need a click - As far as I know there is not a way to do an 'onload' popup anymore and that's what it would require.

    Not really my thing but that would be my guess....

    Comment

    • duk75
      Confirmed User
      • Feb 2012
      • 741

      #3
      Originally posted by EddyTheDog
      I could be wrong - I would guess that you would need a click - As far as I know there is not a way to do an 'onload' popup anymore and that's what it would require.

      Not really my thing but that would be my guess....
      The problem is that it seems that onclick scripts does not work over iframes (when the script is on the main page and not in the iframed page), and I need it to work over iframes, or frames, but it seems it can't.
      ...Nice.

      Comment

      • 2013
        So Fucking Banned
        • Dec 2012
        • 4390

        #4
        you can do on page load with javascript?

        Comment

        • harvey
          Confirmed User
          • Jul 2001
          • 9266

          #5
          redirect first page to second page. on second page make 3rd page popup on load. Problem solved
          This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth

          Comment

          • EddyTheDog
            Just Doing My Own Thing
            • Jan 2011
            • 25433

            #6
            Originally posted by harvey
            redirect first page to second page. on second page make 3rd page popup on load. Problem solved
            Can you do an onload popup?

            Comment

            • harvey
              Confirmed User
              • Jul 2001
              • 9266

              #7
              Originally posted by EddyTheDog
              Can you do an onload popup?
              yes you COULD, but I think most browsers nowadays disable window.open without a click. Anyway, here's a simple code:

              Code:
              <script type="text/javascript">
              function pop()
              {
                  poppy = window.open("http://www.gfy.com", "mywindow", "location=1,status=1,scrollbars=1,width=1000,height=800");
                  poppy.moveTo(0, 0);
              }
              </script>
              <body onload="javascript: pop()">
              JQuery version:

              Code:
              $(function(){ 
                  window.open(url, windowName[, windowFeatures]); 
              });

              OR you can get creative and add a DOM to trigger events via JQuery with some delay. There are many ways, I used some pretty shitty code some years ago to open several pages by using a... FORM element!
              This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth

              Comment

              • duk75
                Confirmed User
                • Feb 2012
                • 741

                #8
                Originally posted by harvey
                redirect first page to second page. on second page make 3rd page popup on load. Problem solved
                The browser will not block the pop up of the second page?
                ...Nice.

                Comment

                • harvey
                  Confirmed User
                  • Jul 2001
                  • 9266

                  #9
                  Originally posted by duk75
                  The browser will not block the pop up of the second page?
                  read above
                  This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth

                  Comment

                  • 2013
                    So Fucking Banned
                    • Dec 2012
                    • 4390

                    #10
                    Originally posted by duk75
                    The browser will not block the pop up of the second page?
                    i gave you the answer in my post

                    Comment

                    • sarettah
                      see you later, I'm gone
                      • Oct 2002
                      • 14327

                      #11
                      Originally posted by duk75
                      The problem is that it seems that onclick scripts does not work over iframes (when the script is on the main page and not in the iframed page), and I need it to work over iframes, or frames, but it seems it can't.
                      Throw a transparent image over the whole page. When they click in launch the popunder and hide the .gif.

                      .
                      All cookies cleared!

                      Comment

                      • helterskelter808
                        So Fucking Banned
                        • Sep 2010
                        • 3405

                        #12
                        I'm sure there are easier ways to completely piss off and alienate your site's visitors.

                        Comment

                        Working...