We're going to be adding some advertisements to the forums! If you notice any weirdness around this or spot bad/inappropriate ads, please make a thread in the bugs forum.

Link coding help

Captain CthulhuCaptain Cthulhu Registered User regular
edited November 2006 in Help / Advice Forum
This is kind of a quick question, but I can't find anything on it (guessing I just don't know where to look).
Is there a way to code links in HTML/Flash/etc. that would cause them to open in a new tab for firefox users?
I know how to make them open in a new window, but the tab thing would be preferable if its possible.
Tanx.

Captain Cthulhu on

Posts

  • ProtoProto Registered User regular
    edited November 2006
    This is kind of a quick question, but I can't find anything on it (guessing I just don't know where to look).
    Is there a way to code links in HTML/Flash/etc. that would cause them to open in a new tab for firefox users?
    I know how to make them open in a new window, but the tab thing would be preferable if its possible.
    Tanx.

    I believe the tabs are considered windows, so target='_blank' should work if the user has the 'open new windows as tabs' option on.

    In other words, no, there isn't anything you can do, it's user controlled.

    Proto on
    and her knees up on the glove compartment
    took out her barrettes and her hair spilled out like rootbeer
  • drinkinstoutdrinkinstout Registered User
    edited November 2006
    currently no, it is not possible as it is a user decision and not all browsers use tabs. There are talks of adding it to CSS eventually BUT browsers are so far behind in their CSS implementation that I wouldn't count on it ever being there.

    Basically, if the user wants the link to open in a new tab, they can do it but all you can really specify is what the person above me wrote, and tell it to open in a new window under default conditions.

    drinkinstout on
  • eltowereltower Registered User
    edited November 2006
    I don't know if target=_blank is valid though!

    It really is up to the user. I have Firefox set to open target=_blank's in new tabs to make it less annoying, so that's a prime example of someone overriding ways to open a link.

    Plus, older browsers don't have tabs. I suppose it would make links incompatible with them, if there were a way to write 'Open in New Tab' directly into a tags.

    eltower on
  • blincolnblincoln Registered User
    edited November 2006
    I don't think it really makes sense to give web designers a way to force content to open in a new tab versus a new window. I hate tabs, myself. The current behaviour of the browser leaves it up to the user, which is the way it should be. And yes, target=_blank is valid, it has been since the olden days of Netscape.

    blincoln on
    Legacy of Kain: The Lost Worlds
    http://www.thelostworlds.net/
  • drinkinstoutdrinkinstout Registered User
    edited November 2006
    yes, target="_blank" is valid code.

    here's some "official" infos: http://w3schools.com/tags/tag_a.asp

    drinkinstout on
Sign In or Register to comment.