window.addEventListener('DOMContentLoaded', function() {
var blank,
i, links = document.links;
function clickOnLink(e) {
if(!blank || !blank.document.location) {
blank = window.open(this.href);
}
else {
blank.document.location.href = this.href;
}
e.preventDefault();
};
for(i = 0; i < links.length; i++) {
links[i].addEventListener('click', clickOnLink);
}
});