Open new browser - multiple links per page - how?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Geoff Fox

    Open new browser - multiple links per page - how?

    I am in the final moments of designing a new website. One of the pages
    (http://www.auditionfactory.com/samples.php) has four links to show
    sample work. I would like these links to open new browser windows when
    clicked. I have found scripts that will allow one to open, and a few
    that claim to all multiples to be opened, but so far nothing that will
    allow a user to open multiple new windows as they click to see new
    samples.

    Does anyone know of a way to accomplish this.

    Thanks,
    Geoff Fox
    Connecticut
    USA

  • pyropyro78
    New Member
    • Jul 2006
    • 11

    #2
    Originally posted by Geoff Fox
    I am in the final moments of designing a new website. One of the pages
    (http://www.auditionfactory.com/samples.php) has four links to show
    sample work. I would like these links to open new browser windows when
    clicked. I have found scripts that will allow one to open, and a few
    that claim to all multiples to be opened, but so far nothing that will
    allow a user to open multiple new windows as they click to see new
    samples.

    Does anyone know of a way to accomplish this.

    Thanks,
    Geoff Fox
    Connecticut
    USA
    ok i found a way. i took this line from ur site and tweaked it.
    <ul>
    <li><a href="http://www.tonyterzi.c om" target="_blank" >Tony Terzi</a><br>
    <li><a href="http://www.marcrobbins .info" target="_blank" >Marc Robbins</a><br>
    <li><a href="http://www.auditionfac tory.com/Kala_Rama" target="_blank" >Kala Rama</a><br>
    <li><a href="http://www.geofftv.com " target="_blank" >Geoff Fox</a><br><br><br>
    </div>
    </div>

    all that you forgot was target="_blank" inside ur tag so just copy and past that into it.

    hope this helps. tell me if it doesnt because i did test it and it seemed to work ok.

    and P.S. this is more HTML than javascript
    Last edited by pyropyro78; Jul 6 '06, 07:07 PM. Reason: forgot to add something

    Comment

    • mertas

      #3
      Re: Open new browser - multiple links per page - how?


      Geoff Fox wrote:
      I am in the final moments of designing a new website. One of the pages
      (http://www.auditionfactory.com/samples.php) has four links to show
      sample work. I would like these links to open new browser windows when
      clicked. I have found scripts that will allow one to open, and a few
      that claim to all multiples to be opened, but so far nothing that will
      allow a user to open multiple new windows as they click to see new
      samples.
      >
      Does anyone know of a way to accomplish this.
      >
      Thanks,
      Geoff Fox
      Connecticut
      USA

      <a href="http://www.tonyterzi.c om" target=_blank>T ony Terzi</a>
      try this...

      Comment

      • pyropyro78
        New Member
        • Jul 2006
        • 11

        #4
        yes that does work also but " " are just the way i type it as habbit because of how i was told how to long ago. but ya man wat eva floats ur boat. hey and nice site i like the layout.

        Comment

        • Jungleman

          #5
          Re: Open new browser - multiple links per page - how?

          target=_blank>

          I think this just opens the page in the existing browser window. In any
          case "target" has been deprecated so the code might not validate. Hence
          the need to use Javascript, right?


          mertas wrote:
          Geoff Fox wrote:
          I am in the final moments of designing a new website. One of the pages
          (http://www.auditionfactory.com/samples.php) has four links to show
          sample work. I would like these links to open new browser windows when
          clicked. I have found scripts that will allow one to open, and a few
          that claim to all multiples to be opened, but so far nothing that will
          allow a user to open multiple new windows as they click to see new
          samples.

          Does anyone know of a way to accomplish this.

          Thanks,
          Geoff Fox
          Connecticut
          USA
          >
          >
          <a href="http://www.tonyterzi.c om" target=_blank>T ony Terzi</a>
          try this...

          Comment

          • pyropyro78
            New Member
            • Jul 2006
            • 11

            #6
            not really because it should validate and if it doesnt try it in a few web brosers and see if it works and no dude that really doesnt call for javascript to be used in this case, but if you so wish you can, i could probibly dig one up for you but it may take me a minite or two to dig through my javascript book just give the word.
            O and dude no with
            <a href="http://www.tonyterzi.c om" target=_blank>T ony Terzi</a>
            it opens in new browser window
            hence target=_blank

            Comment

            • Geoff Fox

              #7
              Re: Open new browser - multiple links per page - how?

              Yes, that's my understanding. It's got to be in Javascript.

              The many Javascript solutions I've found only work for one new browser
              window being spawned. So, if you click on one link, you can't click on
              the others until that first link's 'new' browser is closed.

              I'm still searching for a solution. Any help gratefully appreciated.

              All the best,
              Geoff Fox

              Comment

              • pyropyro78
                New Member
                • Jul 2006
                • 11

                #8
                ok one second ill be right back with your answer just give me about 15-30min max. k?

                Comment

                • Evertjan.

                  #9
                  Re: Open new browser - multiple links per page - how?

                  Geoff Fox wrote on 06 jul 2006 in comp.lang.javas cript:
                  Yes, that's my understanding. It's got to be in Javascript.
                  Please quote what you are replying to. If you want to post a followup via
                  groups.google.c om, don't use the "Reply" link at the bottom of the article.
                  Click on "show options" at the top of the article, then click on the
                  "Reply" at the bottom of the article headers.
                  <http://www.safalra.com/special/googlegroupsrep ly/>
                  >
                  The many Javascript solutions I've found only work for one new browser
                  window being spawned. So, if you click on one link, you can't click on
                  the others until that first link's 'new' browser is closed.
                  <div
                  onclick=
                  'window.open("a .html","_blank" ,"");'+
                  'window.open("b .html","_blank" ,"");'+
                  'window.open("c .html","_blank" ,"");'+
                  'window.open("d .html","_blank" ,"");'+
                  'window.open("e .html","_blank" ,"");'>
                  Open 5 new windows by one click here
                  </div>

                  not tested
                  I'm still searching for a solution. Any help gratefully appreciated.
                  --
                  Evertjan.
                  The Netherlands.
                  (Please change the x'es to dots in my emailaddress)

                  Comment

                  • pyropyro78
                    New Member
                    • Jul 2006
                    • 11

                    #10
                    Originally posted by Evertjan.
                    Geoff Fox wrote on 06 jul 2006 in comp.lang.javas cript:


                    Please quote what you are replying to. If you want to post a followup via
                    groups.google.c om, don't use the "Reply" link at the bottom of the article.
                    Click on "show options" at the top of the article, then click on the
                    "Reply" at the bottom of the article headers.
                    <http://www.safalra.com/special/googlegroupsrep ly/>


                    <div
                    onclick=
                    'window.open("a .html","_blank" ,"");'+
                    'window.open("b .html","_blank" ,"");'+
                    'window.open("c .html","_blank" ,"");'+
                    'window.open("d .html","_blank" ,"");'+
                    'window.open("e .html","_blank" ,"");'>
                    Open 5 new windows by one click here
                    </div>

                    not tested


                    --
                    Evertjan.
                    The Netherlands.
                    (Please change the x'es to dots in my emailaddress)

                    i think he wants them to open 1 at a time not all at ounce but i could be mistaken.... should i still look for my code about opening new window for one at a time with all links included?
                    Last edited by pyropyro78; Jul 6 '06, 08:12 PM.

                    Comment

                    • Randy Webb

                      #11
                      Re: Open new browser - multiple links per page - how?

                      Evertjan. said the following on 7/6/2006 4:07 PM:
                      Geoff Fox wrote on 06 jul 2006 in comp.lang.javas cript:
                      <snip>
                      >The many Javascript solutions I've found only work for one new browser
                      >window being spawned. So, if you click on one link, you can't click on
                      >the others until that first link's 'new' browser is closed.
                      >
                      <div
                      onclick=
                      'window.open("a .html","_blank" ,"");'+
                      'window.open("b .html","_blank" ,"");'+
                      'window.open("c .html","_blank" ,"");'+
                      'window.open("d .html","_blank" ,"");'+
                      'window.open("e .html","_blank" ,"");'>
                      Open 5 new windows by one click here
                      </div>
                      >
                      not tested
                      The + doesn't work in that code the way you think it would in anything
                      but IE.

                      Tested:

                      <div id="test" onclick='
                      window.open("a. html","_blank", "");
                      window.open("b. html","_blank", "");
                      window.open("c. html","_blank", "");
                      window.open("d. html","_blank", "");
                      window.open("e. html","_blank", "");
                      '>
                      Open 5 new windows by one click here
                      </div>

                      IE: 5 new windows
                      FF: 5 new windows
                      Opera 9: 1 new window with 4 popups blocked.

                      --
                      Randy
                      comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
                      Temporarily at: http://members.aol.com/_ht_a/hikksnotathome/cljfaq/
                      Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/

                      Comment

                      • Geoff Fox

                        #12
                        Re: Open new browser - multiple links per page - how?

                        Thanks all. I appreciate the help, but this wasn't exactly what I
                        wanted to do. I apologize if I've described my problem incorrectly.

                        I want to be able to open new windows, one at a time, as my visitors
                        click individual links. In the Javascript I've tried, once the first
                        new window is open, no other new windows can be spawned. You have to
                        close the first spawned window, which is now hidden under the active
                        window you're trying to click on.


                        In all the solutions I've tried,
                        Randy Webb wrote:
                        Evertjan. said the following on 7/6/2006 4:07 PM:
                        Geoff Fox wrote on 06 jul 2006 in comp.lang.javas cript:
                        >
                        <snip>
                        >
                        The many Javascript solutions I've found only work for one new browser
                        window being spawned. So, if you click on one link, you can't click on
                        the others until that first link's 'new' browser is closed.
                        <div
                        onclick=
                        'window.open("a .html","_blank" ,"");'+
                        'window.open("b .html","_blank" ,"");'+
                        'window.open("c .html","_blank" ,"");'+
                        'window.open("d .html","_blank" ,"");'+
                        'window.open("e .html","_blank" ,"");'>
                        Open 5 new windows by one click here
                        </div>

                        not tested
                        >
                        The + doesn't work in that code the way you think it would in anything
                        but IE.
                        >
                        Tested:
                        >
                        <div id="test" onclick='
                        window.open("a. html","_blank", "");
                        window.open("b. html","_blank", "");
                        window.open("c. html","_blank", "");
                        window.open("d. html","_blank", "");
                        window.open("e. html","_blank", "");
                        '>
                        Open 5 new windows by one click here
                        </div>
                        >
                        IE: 5 new windows
                        FF: 5 new windows
                        Opera 9: 1 new window with 4 popups blocked.
                        >
                        --
                        Randy
                        comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
                        Temporarily at: http://members.aol.com/_ht_a/hikksnotathome/cljfaq/
                        Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/

                        Comment

                        • Jim Land

                          #13
                          Re: Open new browser - multiple links per page - how?

                          "Geoff Fox" <geoff.fox@gmai l.comwrote in news:1152221404 .318582.225340
                          @j8g2000cwa.goo glegroups.com:
                          I want to be able to open new windows, one at a time, as my visitors
                          click individual links. In the Javascript I've tried, once the first
                          new window is open, no other new windows can be spawned. You have to
                          close the first spawned window, which is now hidden under the active
                          window you're trying to click on.
                          This seems to do what you want. At least it works for me in FF and IE.

                          <button onclick="window .open('http://www.google.com/');">Google
                          </button>
                          <button onclick="window .open('http://www.yahoo.com/');">Yahoo
                          </button>

                          Comment

                          • Lasse Reichstein Nielsen

                            #14
                            Re: Open new browser - multiple links per page - how?

                            "Jungleman" <rharris@jungle photos.comwrite s:
                            target=_blank>
                            >
                            I think this just opens the page in the existing browser window.
                            That depends on the browser. In a tabbed browser, it most likely
                            opens a new tab. In, e.g., IE, it opens a new window.
                            Whether that counts as a "new browser", I'll leave for the philosophers
                            (I guess the best test of whether it's a new browser or a new window
                            in the same browser is to crash one and see if it takes the other one
                            down with it :).
                            In any case "target" has been deprecated so the code might not
                            validate.
                            It's not deprecated. It's a standard feature of HTML 4.01
                            Transitional, and any document using the appropriate DOCTYPE
                            should have no problem validating.
                            Hence the need to use Javascript, right?
                            I would question the need for a new window first. After that,
                            I'll question a design that requires Javascript.

                            /L
                            --
                            Lasse Reichstein Nielsen - lrn@hotpop.com
                            DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
                            'Faith without judgement merely degrades the spirit divine.'

                            Comment

                            Working...