User request to have a SharePoint 2013 list hyperlink column to open in a new tab.
The code (my hyperlink is the 4th column in the list) that worked even when going to page 2 in the list view:
$(function() {
var $t;
var interval = setInterval(function() {
$t = $("table.ms-listviewtable>tbody tr td:nth-child(4) a");
$t.each(function(){
$(this).attr("target", "_blank");
});
}, 1000);
});
Special thanks for the help on this issue to Patrick_Liang (MSFT CSG, Partner)


