Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Nov 2010
    Posts
    50
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Can I force a new "tab" not "windows"?

    if I use:-

    Code:
    target="_blank"
    it opens up a new window, can I get it to open just a new tab?

    Cheers Daniel.

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,749
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    Hello DanielHowden,
    You should not be deciding how a link opens when I click it. That is one reason the target attribute is being deprecated.
    If my browser is set up to open links in a new tab then that's how I want it. If I want links opening up in a new browser then code that stops that from happening would not make me happy.

    Interesting argument for both sides.


    And the target how-to...
    Last edited by Excavator; 12-22-2010 at 04:48 PM. Reason: added link
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,930
    Thanks
    6
    Thanked 1,041 Times in 1,014 Posts
    Apart from the target attribute being invalid you should be aware of the fact that the way you are browsing the web doesn’t have to be the way anyone else is. In fact, you don’t even know what program another person is using, and on what kind of device. Maybe the browser I’m using doesn’t even have tabs as an option? IE6 doesn’t, for example.

    So, it’s not only a matter of decision, it’s just something you cannot control. Ever. Period.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •