$('a').each(function() { var a = new RegExp('/' + window.location.host + '/'); if(!a.test(this.href)) { $(this).click(function(event) { event.preventDefault(); event.stopPropagation(); window.open(this.href, '_blank'); }); } });
Anthony Harrison's Picture

Anthony Harrison

Anthony Harrison is a writer, editor and general word nerd based in Durham, NC. In his spare time, he writes and plays music, re-reads his favorite novels and tries to keep up with the Tarheels.

Post by Anthony Harrison