HTML Link Code Question

Discussion in 'HTML & Website Design' started by jawinn, Sep 4, 2006.

  1. #1
    Is there a way to force new pages in a link to be opened in the same browser window? For some reason the link to my vB forum always comes up in a new windos, I don't want this.
     
    jawinn, Sep 4, 2006 IP
  2. danielbruzual

    danielbruzual Active Member

    Messages:
    906
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    70
    #2
    Use the target attribute:

    <a href="http://www.google.com" target="_top">Open Google in the same page</a>
    Code (markup):
    Daniel
     
    danielbruzual, Sep 4, 2006 IP
  3. -CP-

    -CP- Well-Known Member

    Messages:
    181
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    140
    #3
    you could use target="_self" or specify no target at all and it will open in the same window by default,

    to get links posted on your vB forum

    OPEN: includes/class_bbcode.php

    FIND:
    		// standard URL hyperlink
    		return "<a href=\"$rightlink\" target=\"_blank\">$text</a>";
    Code (markup):
    REPLACE WITH:
    		// standard URL hyperlink
    		return "<a href=\"$rightlink\">$text</a>";
    Code (markup):
     
    -CP-, Sep 4, 2006 IP