+91-943-185-6038 me@shashidharkumar.com

W3CWhile the apply ‘_blank’ value to a native link’s attribute ‘target’ that will give you not validated for W3C, the solution is to handle the click on the link and open it in a new window. Please note this alternative methods are absolutely SEO friendly and W3C valid. The code for the solution is:

<script type=”text/javascript”>
$(document).ready(function(){
$(‘A[rel=”_blank”]’).click(function(){
window.open($(this).attr(‘href’));
return false;
});
});
</script>

<a href=”http://www.shashidharkumar.com/shashidharkumar/index.html” rev=”solution-02″ rel=”_blank”>Shashidhar Kumar</a>

See also  Simple email script in php