Return to Snippet

Revision: 5291
at February 25, 2008 11:53 by neal_grosskopf


Initial Code
<a href="http://www.nealgrosskopf.com" onclick="window.open(this.href);return false;">Link</a>

Initial URL
http://www.nealgrosskopf.com/tech/thread.asp?pid=2

Initial Description
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.

Initial Title
How To Use target="_blank" Correctly In XHTML & HTML Strict

Initial Tags
html, xhtml, validation

Initial Language
HTML