1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Using target=_blank

Discussion in 'Styling and Customization Questions' started by Neil E., Dec 30, 2012.

  1. Neil E.

    Neil E. Active Member

    I have an extra NavTab with the following link:
    <li class="navTab PopupClosed"><a href="http://www.oftr.ca/page.php?id=312/" class="navLink">Join</a></li>

    I need it to open a new window so I added target=_blank, but it still opens in the same window.
    <li class="navTab PopupClosed"><a href="http://www.oftr.ca/page.php?id=312/" target=_blank class="navLink">Join</a></li>

    Is my syntax wrong?
  2. MagnusB

    MagnusB Well-Known Member

    Morgain likes this.
  3. Neil E.

    Neil E. Active Member

    Thank you. target="_blank" works fine.

    I played around with it a bit and found that target=_"blank" and target="blank" also worked.
  4. Brandon Sheley

    Brandon Sheley Well-Known Member

    is the correct way
  5. MagnusB

    MagnusB Well-Known Member

    Browsers handle sloppy code, doesn't mean you should use it ;)
    Brandon Sheley likes this.
  6. Neil E.

    Neil E. Active Member

    Brandon Sheley likes this.
  7. MagnusB

    MagnusB Well-Known Member

    w3schools are good for reference, not much more. Much of the material there is dated and some is plain wrong.
    Arty likes this.

Share This Page