The forums have permanently moved to forum.kirupa.com. This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.


Results 1 to 6 of 6

Thread: xHTML Strict, target=

  1. #1

    xHTML Strict, target=

    So I noticed as I was completing one of my xHTML designs. When I went to verify it, everything verified except for the target in an anchor. So for example
    HTML Code:
    <a href="www.google.com" rel="nofollow" target="_blank">www.google.com</a>
    works great in Transitional, well Strict doesn't allow target as a property.
    http://www.w3schools.com/tags/tag_a.asp

    Does anyone else have a solution that isn't based around JS that will allow for that same kinda of functionality? Basically opening a link in a new window...?
    Let us live so that when we come to die even the undertaker will be sorry. - Mark Twain
    Don't PM me your CSS, xHTML, JS or PHP questions. I will not reply to ANY IE6 questions.

  2. #2
    As far as I know there isn't a solution that's not based around Javascript (I really hope to be proved wrong on this because it would make life easier!). All the methods I've seen to make opening new windows in an XHTML Strict doc use some variation of Javascript.

    And from what I've read most people encountering this problem do one of three things:
    1. Change to XHTML Transitional.
    2. Use the Javascript.
    3. Skip the opening of a new window.
    Γνώθι Σεαυτόν

  3. #3
    Yeah, JS is the only way to do it, as far as I know.

    Google brought up this (JS) method:
    http://www.sitepoint.com/article/sta...ompliant-world


    K-Emmys-06: Best Footer; and K-Emmys-06: Most Active Member

  4. #4
    right, i did a google search b4 asking and i saw that. my problem is that the client doesn't want to use JS or Flash... which is fine. And she actually wanted it to be strict too, and she didn't want the links to open into the same page when she viewed the template... so you see there enlies (sp) my problem. I guess I'll just have to explain it'll have to be transitional. Thanks fellas , wish there was a way though
    Let us live so that when we come to die even the undertaker will be sorry. - Mark Twain
    Don't PM me your CSS, xHTML, JS or PHP questions. I will not reply to ANY IE6 questions.

  5. #5
    Yeah… sorry.


    K-Emmys-06: Best Footer; and K-Emmys-06: Most Active Member

  6. #6
    Yeah like nokrev said, sorry. You'll just have to explain to your client that as of now there's not a perfect solution to this issue (that you know of).

    However when explaining that to the client make sure to let her know that there are a few JS options available and that really there aren't that bad. I mean if you think about it the "rel="external" solution isn't too bad of a way to go. If worse come to worse and a visitor to the site has JS disabled, the page just opens into the normal window. Which would be the same if you were to go the non-JS, XHTML strict route anyway.

    I still really hope that some can come along and provide a non-JS way of doing this. It would be SO helpful to anyone making XHTML strict sites.
    Γνώθι Σεαυτόν

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012