Sử dụng thuộc tính target của phần tử <a> để lấy giá trị target (_blank, _self, _parent...).
Ví dụ
<!DOCTYPE html>
<html>
<body>
<p><a id="qriesid" target="_self" href="https://qries.com/" type="text/html">Qries</a></p>
<script>
var x = document.getElementById("qriesid").target;
document.write("Giá trị thuộc tính target: " + x);
</script>
</body>
</html>