w3 Valid a link target attribute
Posted in programmer on Noviembre 20th, 2009 by adminTarget attribute used inside link tag turns the page contnent into a non w3c valid. (for strict and transitional DOCTYPE). There is as simply way to add it with javascript.
Using jQuery
- <javascript>
- $("#somewhere a").attr("target","_blank")
- </javascript>
- <div id="somewhere">
- <a href="http://go.away">please</a>
- </div>
