website_template/js/scripts-min.js
2014-06-29 12:46:19 +02:00

1 line
245 B
JavaScript

function externalLinks(){if(document.getElementsByTagName)for(var e=document.getElementsByTagName("a"),t=0;t<e.length;t++){var n=e[t];n.getAttribute("href")&&"external"===n.getAttribute("class")&&(n.target="_blank")}}window.onload=externalLinks;