I have this piece of code:
$('.tool li a:first-child').each(function(){
$(this).after(' <a href="' + $(this).attr('href') + '" title="Open link in new tab"><img src="/img/icon-arrow.png" height="9" width="9" alt="Arrow Icon" target="_blank" /></a>');
});
So even though the images that are added are hyperlinked with a target=_blank, the link does not open in a new window.
Any thoughts why the browser does not recognize that?
-Ryan
You need to add the
targetattribute on theatag, not theimgtag.