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