HELP!!! Code question...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MarkTiarra
    Confirmed User
    • Aug 2002
    • 3833

    #1

    HELP!!! Code question...

    I need someone here to show off how big their code penis is, please. You'd think I'd now the answer to this one after 14 years of coding, but sometimes you get soemthing that hasn't come up before...

    I've got a popup console that launches and is the top layer/focus. When someone clicks on an item in the console I have it launch back into the browser underneath and want to change focus back to that browser instead of having the console still sitting up top. How can I do it???

    Retired Pornosticator
  • ravo
    Confirmed User
    • Jun 2001
    • 5461

    #2
    Bump for an answer for Mark.
    AdultAdBroker - Buy and Sell Your Flat Rate Banners, Links, Tabs, Pops, Email Clicks and Members' Area Traffic - updated May 2026

    Comment

    • psili
      Confirmed User
      • Apr 2003
      • 5526

      #3
      is it: opener.focus()

      or just close the console after the click that targets opener?

      i dunno. here's a bumpity.
      Your post count means nothing.

      Comment

      • Zayne E.
        Confirmed User
        • Apr 2002
        • 1383

        #4
        http://blazonry.com/javascript/windows.php

        See Example 4...

        Comment

        • MarkTiarra
          Confirmed User
          • Aug 2002
          • 3833

          #5
          Originally posted by Zayne E.
          Thanks for the link. It's not quite it though. It does launch the new link in the original browser (which we managed to accomplish thus far) but it does not move the popup window to the background. That's the main thing I need.

          Retired Pornosticator

          Comment

          • MarkTiarra
            Confirmed User
            • Aug 2002
            • 3833

            #6
            Example #2 might hold the key though. Trying that now...

            Retired Pornosticator

            Comment

            • MarkTiarra
              Confirmed User
              • Aug 2002
              • 3833

              #7
              Dang nope... couldn't quite make that work.

              Retired Pornosticator

              Comment

              • Zayne E.
                Confirmed User
                • Apr 2002
                • 1383

                #8
                Originally posted by MarkTiarra
                Thanks for the link. It's not quite it though. It does launch the new link in the original browser (which we managed to accomplish thus far) but it does not move the popup window to the background. That's the main thing I need.
                In your popup window set your HREF's as such:
                <a href="javascript:window.blur()">click</a>

                Comment

                • MarkTiarra
                  Confirmed User
                  • Aug 2002
                  • 3833

                  #9
                  Originally posted by Zayne E.
                  In your popup window set your HREF's as such:
                  <a href="javascript:window.blur()">click</a>
                  Sorry to sound newb, but where then does the URL mix in with that?
                  <a href="javascript:window.blur(INSERTSITEURL?)">clic k</a>

                  Retired Pornosticator

                  Comment

                  • quantum-x
                    Confirmed User
                    • Feb 2002
                    • 6863

                    #10
                    var newPop = window.open('url');
                    newPop.blur();
                    PrettyInCash.com - BoozedGFs.com - TeenGFs.com - JizzGFs.com- MilfUploads.com -

                    Comment

                    • MarkTiarra
                      Confirmed User
                      • Aug 2002
                      • 3833

                      #11
                      Originally posted by quantum-x
                      var newPop = window.open('url');
                      newPop.blur();
                      Grasias!

                      Retired Pornosticator

                      Comment

                      • quantum-x
                        Confirmed User
                        • Feb 2002
                        • 6863

                        #12
                        In the window that pops up:

                        put this in the head

                        <SCRIPT language=JavaScript>
                        function leave() { if (exit) this.blur();}
                        </SCRIPT>

                        In the body tag of the doc: onBeforeUnload="return leave();"

                        that should work
                        PrettyInCash.com - BoozedGFs.com - TeenGFs.com - JizzGFs.com- MilfUploads.com -

                        Comment

                        • MarkTiarra
                          Confirmed User
                          • Aug 2002
                          • 3833

                          #13
                          Originally posted by quantum-x
                          In the window that pops up:

                          put this in the head

                          <SCRIPT language=JavaScript>
                          function leave() { if (exit) this.blur();}
                          </SCRIPT>

                          In the body tag of the doc: onBeforeUnload="return leave();"

                          that should work
                          Nice. If I can ever help ya' out, just let me know.

                          Retired Pornosticator

                          Comment

                          Working...