अवलोकन
लिंक के target एट्रिब्यूट का मान प्राप्त करने के लिए target प्रॉपर्टी का उपयोग करें। यह निर्दिष्ट करता है कि लिंक कहाँ खुलेगा।
उदाहरण
<!DOCTYPE html> <html> <body> <p><a id="anchorid" rel="nofollow" target= "_blank" href="https://www.qries.com/">Qries</a></p> <script> var myVal = document.getElementById("anchorid").target; document.write("Value of target attribute: "+myVal); </script> </body> </html>