/ Published in: jQuery
<a> instead of <a> to get that green mark in your validator
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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" }); }); }