HTML DOM type Property
Complete Anchor Object Reference
Definition and Usage
The type property sets or returns the MIME type for the linked resource.
Syntax
Example
The following example returns the MIME type for the linked resource:
<html>
<body>
<p><a id="myAnchor" type="text/html"
href="http://www.w3schools.com">W3Schools.com</a></p>
<script type="text/javascript">
x=document.getElementById("myAnchor");
document.write(x.type);
</script>
</body>
</html>
|
Try-It-Yourself Demos
Get the
MIME type of the link
Complete Anchor Object Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|