জাভাস্ক্রিপ্টে একটি লিঙ্কের লক্ষ্য বৈশিষ্ট্যের মান অনুসন্ধান করতে, লক্ষ্য ব্যবহার করুন সম্পত্তি লক্ষ্য বৈশিষ্ট্যের মান পেতে আপনি নিম্নলিখিত কোডটি চালানোর চেষ্টা করতে পারেন।
উদাহরণ
<!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("Value of the target attribute: "+x);
</script>
</body>
</html>