window.onload = function() { var link = document.querySelector('.content a'); link.target = "_blank" };