
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Search Value of Type Attribute of a Link in JavaScript
To search the value of the type attribute of a link in JavaScript, use the type property. You can try to run the following code to get the value of type attribute.
Example
<!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>
Advertisements