/ Published in: jQuery
Expand |
Embed | Plain Text
function openInNewWindow(target) { $(target + " a[rel='blank']").each(function() { $(this).attr({ href: "javascript:window.open('" + $(this).attr("href") + "');void(0);", title: "Link opens in new window/tab" }); }); }
You need to login to post a comment.
