RSS FeedTarget blank with jQuery
When you want to open a link in a new window there is nice valid approach with jQuery.
jQuery code
$(function() {
$(".external").attr("target","_blank");
});
As you can see i don’t use the rel attribute, i prefer to use a class so you can give the link a external window icon. With that icon your visitors will know that a new window will be opened.
CSS code
.external { background: url(../images/globals/external.png) center right no-repeat; padding-right: 14px; }
Check all articles
