Making a link open in a new window?

Discussion in 'Programming' started by ryan1918, Aug 8, 2007.

Thread Status:
Not open for further replies.
  1. #1
    Well I can't remember how to make my links open in a new window instead of leaving my site, example of a link..

    <center> [ <a href="http://www.ryan1918.com/viewtopic.php?t=12267">CAN YOU WIN @ THE CONTEST? > </a> ] </center>
     
    ryan1918, Aug 8, 2007 IP
  2. RB!

    RB! Active Member

    Messages:
    216
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #2
    add targert="_blank" in there

    EDIT: sorry, mispelled target, it should be target="_blank"
     
    RB!, Aug 8, 2007 IP
  3. ryan1918

    ryan1918 Active Member

    Messages:
    668
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Where would I add it exactly?
     
    ryan1918, Aug 8, 2007 IP
  4. RB!

    RB! Active Member

    Messages:
    216
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #4
    it should look like this..
    <a href="http://www.ryan1918.com/viewtopic.php?t=12267" target="_blank">CAN YOU WIN @ THE CONTEST?</a>
    Code (markup):
     
    RB!, Aug 8, 2007 IP
  5. RB!

    RB! Active Member

    Messages:
    216
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #5
    nice forum by the way, i might even join, how long has the forum been running, and what software do you use; im planning on having my own forum for my e-commerce site
     
    RB!, Aug 8, 2007 IP
  6. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #6
    As it says at the bottom of every page, it runs vBulletin - surprisingly it does use the SEO plug in but then neither vB not the plug in are cheap
     
    AstarothSolutions, Aug 8, 2007 IP
  7. ryan1918

    ryan1918 Active Member

    Messages:
    668
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    60
    #7
    it's not vBulletin, it's phpBB and my forum has only been up a little over a year
     
    ryan1918, Aug 9, 2007 IP
  8. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Ok, assumed the OP was talking about this forum rather than yours or mine or anyone elses
     
    AstarothSolutions, Aug 9, 2007 IP
  9. ryan1918

    ryan1918 Active Member

    Messages:
    668
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    60
    #9
    It seems your site is having problems

     
    ryan1918, Aug 10, 2007 IP
Thread Status:
Not open for further replies.