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

Francesca Nicasio

Francesca Nicasio is from Vend, a cloud-based point of sale and retail management software that lets retailers run their business in-store, online, and on-the-go. Learn more at vendhq.com.

Post by Francesca Nicasio