Return to Snippet

Revision: 33835
at October 14, 2010 01:42 by virgil


Initial Code
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"
		});
	});
}

Initial URL

                                

Initial Description
<a> instead of <a> to get that green mark in your validator

Initial Title
target = _blank fix

Initial Tags

                                

Initial Language
jQuery