Use jQuery to target _blank
If you want to write strict XHTML and you’re having problems using
target="_blank"
on your links, there is a simple jQuery fix. Add this script to your page:
$(function() {
$(".external").attr("target","_blank");
});And give any links you want to open in a new window
class="external"
Have your say: