1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Development Simple HTML question... please help.

Discussion in 'Software' started by bajastx, 15 Jan 2007.

  1. bajastx

    bajastx What's a Dremel?

    Joined:
    22 Jan 2002
    Posts:
    195
    Likes Received:
    0
    I'm trying to add a HTML link in an ebay auction so people that view the auction can just click on it instead of copying and pasting.

    This is the link:
    http://www.pbreview.com/products/reviews/3956/

    Could someone please tell me what HTML code I have to add to the link so it will turn blue in the auction so people can click on it.

    Thank you.
     
  2. Techno-Dann

    Techno-Dann Disgruntled kumquat

    Joined:
    22 Jan 2005
    Posts:
    1,672
    Likes Received:
    27
    It should be <A HREF="http://www.pbreview.com/products/reviews/3956/">http://www.pbreview.com/products/reviews/3956/</A>
     
  3. Duste

    Duste Sierra my delta, bravo!

    Joined:
    1 Oct 2006
    Posts:
    818
    Likes Received:
    0
    Code:
    <a href="http://www.pbreview.com/products/reviews/3956/">http://www.pbreview.com/products/reviews/3956/</a>
     
  4. bajastx

    bajastx What's a Dremel?

    Joined:
    22 Jan 2002
    Posts:
    195
    Likes Received:
    0
    Thanks guys.

    I'm a little rusty. I forgot I had to include what I actually wanted to be displayed... without that it was just making it disappear.

    Thanks again.
     
  5. bajastx

    bajastx What's a Dremel?

    Joined:
    22 Jan 2002
    Posts:
    195
    Likes Received:
    0
    Sorry, but I have another question.

    Is there a way to make it so when they click on the link it opens the link in a new window instead of navigating away from the auction page?
     
  6. supermonkey

    supermonkey Deal with it

    Joined:
    14 Apr 2004
    Posts:
    4,955
    Likes Received:
    202
    Yes. Add: target="_blank" to your anchor tag.

    Your code would then look like this:

    Code:
    <a href="http://www.pbreview.com/products/reviews/3956/" target="_blank">http://www.pbreview.com/products/reviews/3956/</a>
    -monkey
     
  7. Techno-Dann

    Techno-Dann Disgruntled kumquat

    Joined:
    22 Jan 2005
    Posts:
    1,672
    Likes Received:
    27
    Now here's a random question... Is there code like the target="_blank" to open the link in a new Firefox tab?
     
  8. orb

    orb satisfying.

    Joined:
    23 Dec 2003
    Posts:
    1,105
    Likes Received:
    0
    The randomness of that question surprised me.

    No
     
  9. supermonkey

    supermonkey Deal with it

    Joined:
    14 Apr 2004
    Posts:
    4,955
    Likes Received:
    202
    I'm not entirely sure about that one. The way Firefox works on my machine, it takes any (target="_blank") attribute and loads the page in a new tab. But, I have Firefox set up to open new windows in tabs, configured from the Tools>Options>Tabs menu. Your mileage may vary.

    EDIT: I should mention that there are only 4 officially recognized "Target" attributes: _Self, _Parent, _Top, and _Blank. Others may exist, but support is sketchy.

    -monkey
     
    Last edited: 15 Jan 2007
  10. cpemma

    cpemma Ecky thump

    Joined:
    27 Nov 2001
    Posts:
    12,328
    Likes Received:
    55
    There shouldn't be. It would make the code browser-specific rather than W3-compliant and the fan-boys would get upset.

    But the actual user can pick & mix how and where a link opens. On mine, middle-click will force a new tab even without 'target="blank"'.
     
  11. JazzXP

    JazzXP Eh! Steve

    Joined:
    30 Apr 2002
    Posts:
    1,669
    Likes Received:
    13
    Since most of the big browsers support tabs now, I'm surprised that there's not a defacto standard of _tab or something.
     
  12. cpemma

    cpemma Ecky thump

    Joined:
    27 Nov 2001
    Posts:
    12,328
    Likes Received:
    55
    Don't hold your breath...
    Reasons? See here.
     
    Last edited: 15 Jan 2007

Share This Page