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