Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. href

href

Scheduled Pinned Locked Moved Web Development
question
17 Posts 8 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D dan sh

    Why not check yourself? I believe it is not that time consuming to do.

    50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!

    J Offline
    J Offline
    JustWorking
    wrote on last edited by
    #5

    I did check it myself but i wanted a second tester to conferm my result

    W D enhzflepE 3 Replies Last reply
    0
    • J JustWorking

      I did check it myself but i wanted a second tester to conferm my result

      W Offline
      W Offline
      WoutL
      wrote on last edited by
      #6

      And what happened? And how do you put two HREFs in one link? And why would you put 2 HREFs in one link?

      Wout Louwers

      1 Reply Last reply
      0
      • J JustWorking

        I did check it myself but i wanted a second tester to conferm my result

        D Offline
        D Offline
        dan sh
        wrote on last edited by
        #7

        Ok. So what result you got? Post the code and I will check that here myself.

        50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!

        J 2 Replies Last reply
        0
        • D dan sh

          Ok. So what result you got? Post the code and I will check that here myself.

          50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!

          J Offline
          J Offline
          JustWorking
          wrote on last edited by
          #8

          <a href="http://www.codeproject.com" href="http://www.google.com">Testing</a>

          D 1 Reply Last reply
          0
          • J JustWorking

            <a href="http://www.codeproject.com" href="http://www.google.com">Testing</a>

            D Offline
            D Offline
            dan sh
            wrote on last edited by
            #9

            Your first Href is incorrect so it will just not work. Once you fix that, the link will redirect to the first one.

            50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!

            J 1 Reply Last reply
            0
            • D dan sh

              Ok. So what result you got? Post the code and I will check that here myself.

              50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!

              J Offline
              J Offline
              JustWorking
              wrote on last edited by
              #10

              So what will be the result of the above tage?

              1 Reply Last reply
              0
              • D dan sh

                Your first Href is incorrect so it will just not work. Once you fix that, the link will redirect to the first one.

                50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!

                J Offline
                J Offline
                JustWorking
                wrote on last edited by
                #11

                so it will take me to my first href not the last :confused: this is bad dude are you sure?

                D N 2 Replies Last reply
                0
                • J JustWorking

                  so it will take me to my first href not the last :confused: this is bad dude are you sure?

                  D Offline
                  D Offline
                  dan sh
                  wrote on last edited by
                  #12

                  Yes I am sure. I guess has something to do with how your HTML is parsed.

                  50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!

                  1 Reply Last reply
                  0
                  • J JustWorking

                    so it will take me to my first href not the last :confused: this is bad dude are you sure?

                    N Offline
                    N Offline
                    nagendrathecoder
                    wrote on last edited by
                    #13

                    Yes, it is rediredting to first link. I don't know why u need this, i havn't seen this before. :doh:

                    1 Reply Last reply
                    0
                    • J JustWorking

                      If I have 2 href's in a link which one will it take?

                      A Offline
                      A Offline
                      aegis1954
                      wrote on last edited by
                      #14

                      what did I win :cool:

                      1 Reply Last reply
                      0
                      • J JustWorking

                        If I have 2 href's in a link which one will it take?

                        L Offline
                        L Offline
                        Lost User
                        wrote on last edited by
                        #15

                        This is incorrect usage, you can only have one href attribute in an anchor; see here[^].

                        1 Reply Last reply
                        0
                        • J JustWorking

                          I did check it myself but i wanted a second tester to conferm my result

                          enhzflepE Offline
                          enhzflepE Offline
                          enhzflep
                          wrote on last edited by
                          #16

                          AnonymousMember wrote:

                          I did check it myself but i wanted a second tester to conferm my result

                          You might think to say that in the original post - it tends to foster a warmer reception than your approach in this instance. Perhaps something along the lines of: "Can anybody check this for me? I placed 2 hrefs inside a single tag, and I'd like to know which one will be followed when the link is clicked. When I tried it, using IE(versionNumber) the first link was followed. I'm hoping to determine if this is consistent behavior." While I don't believe it to be the case, or your intention - your method of questioning feels a little sneaky. (it also raises in some people's mind the question of laziness - i.e did he/she really try themselves?) Anyhow, Happy New Year to all.:thumbsup:

                          modified on Thursday, December 31, 2009 1:08 PM (fosters --> foster)

                          1 Reply Last reply
                          0
                          • J JustWorking

                            If I have 2 href's in a link which one will it take?

                            E Offline
                            E Offline
                            Emilio Garavaglia
                            wrote on last edited by
                            #17

                            Don't do that. The HTML standard clearly say that for each property there must be ONE value. Doing that differently will you run in the so called "undefined behavior". Undefined behavior is not "random behavior", simply what you get is anymore granted by whatever specification, hence every different program may respond differently now or in the future. Testing yourself (and asking to repeat the test) doesn't provide any demonstration: the fact that you find even 100% consistence proves nothing; tomorrow morning whatever developer can create a new browser (or a new version of an existing one) dong it differently.

                            2 bugs found. > recompile ... 65534 bugs found. :doh:

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • World
                            • Users
                            • Groups