/ Published in: HTML

URL: http://www.nealgrosskopf.com/tech/thread.asp?pid=2
If you've ever used a strict doctype and used the target attribute on links you'll notice that it doesn't validate. Here is an easy solution.
Expand |
Embed | Plain Text
Comments

You need to login to post a comment.
It doesn't validate for a reason - because opening links in new windows is bad for accessibility.
At some point, developers need the ability to do it at least. The W3C depreciated target="_blank" because they felt it was more of a behavior and would best be accomplished using javascript.
Neat workaround using JavaScript so you don't have to type the 'onclick' event on every single anchor @ http://www.theghostcoder.com/2009/05/working-around-xhtml-strict-target-support/