website_template/js/scripts-min.js

1 line
245 B
JavaScript
Raw Normal View History

2014-06-29 12:46:19 +02:00
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;