জাভাস্ক্রিপ্টে লিংকের type অ্যাট্রিবিউটের মান সার্চ করতে type প্রপার্টি ব্যবহার করা হয়। নিচের কোড রান করে type অ্যাট্রিবিউটের মান পান:
উদাহরণ
<!DOCTYPE html> <html> <body> <p><a id = "qriesid" href = "https://qries.com/" type="text/html" >Qries</a></p> <script> var x = document.getElementById("qriesid").type; document.write("Value of the type attribute: "+x); </script> </body> </html>