$('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'); }); } });
Jason Brown's Picture

Jason Brown

Product Solutions Expert at Dor

Durham, NC http://getdor.com No posts

Post by Jason Brown