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


<a href="www.google.com" 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…?

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.

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

Google brought up this (JS) method:

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 :D, wish there was a way though :frowning:

Yeah… sorry.

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.