...
Html |
---|
<script>
jQuery(document).ready(function(){
jQuery.each(jQuery(".external-link"), function(i, link){
var href= link.getAttribute('href');
if(href.indexOf('mailto:') < 0){
link.setAttribute('target', '_blank');
}
});
});
</script>
|