1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Open page in a new tab, instead of in a new window.

Discussion in 'HTML & Website Design' started by Thailand_for_YOU, Jul 23, 2008.

  1. #1
    Is there a tag (like target="_blank") that would open a page in a new tab?
     
    Thailand_for_YOU, Jul 23, 2008 IP
    Rage likes this.
  2. digitalballer

    digitalballer Member

    Messages:
    32
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #2
    Try "target=_new"

    Thing is, that probably wont work all the time. It really depends on the end user and browser settings.
     
    digitalballer, Jul 23, 2008 IP
  3. PatMcCrackit

    PatMcCrackit Peon

    Messages:
    109
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yeah that would be hard to do because not all browsers support tabs. For instance in FF you right click a link and can select "open page in new tab" but in older versions of IE there is no such selection.
     
    PatMcCrackit, Jul 23, 2008 IP
  4. Jeremy Yak

    Jeremy Yak Peon

    Messages:
    31
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Links being opened in new tabs is a browser preference. This can only be controlled by the users.
    There is no way, through HTML, you could tell a link to open in a new tab. If there is a way (or hack), it defiantly doesn't work cross browser.
    ~Jeremy~
     
    Jeremy Yak, Jul 24, 2008 IP
  5. aleale

    aleale Well-Known Member

    Messages:
    1,453
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    130
    #5

    can you show me any example of this?
     
    aleale, Jul 24, 2008 IP
  6. joshchan214

    joshchan214 Peon

    Messages:
    79
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    like digitalballer, it depends on the end user. like in my firefox settings, i set it as middle click to open pages in new tab.
    btw, not all browsers support tabs such as IE6 (if you still use that crap). so, no use trying to write those things in your code.
     
    joshchan214, Jul 24, 2008 IP
  7. digitalballer

    digitalballer Member

    Messages:
    32
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #7
    Not my site, just a random I found:
    http://www.aquaristics.com/

    The tag is used in the box on the top left where it says "Check out these super sweet deals on our eBay Page.", and in all the links in the footer.

    Whereas the links in the side menu do not use it and load in the same tab.

    Not sure if the _ matters. Like "blank" vs "_blank". Apparently it doesn't.
     
    digitalballer, Jul 24, 2008 IP