JavaScript установите цель

document.getElementById("myElement").setAttribute("target","_blank");
Friendly Hawk