I’m using this:
document.onclick = function (e) {
e = e || window.event;
var element = e.target || e.srcElement;
if (element.tagName == 'A') {
window.open(element.href, "_blank", "location=no");
return false;
}
};
But I need to get the anchor from a specifically tag like or any id
thanks.