HTML DOM hreflang Property
Complete Anchor Object Reference
Definition and Usage
The hreflang property sets or returns the language code of the linked
resource.
Syntax
anchorObject.hreflang=languagecode
|
Example
The following example returns the language code of the linked resource:
<html>
<body>
<p><a id="myAnchor" hreflang="us-en"
href="http://www.w3schools.com">W3Schools.com</a></p>
<script type="text/javascript">
x=document.getElementById("myAnchor");
document.write(x.hreflang);
</script>
</body>
</html>
|
Try-It-Yourself Demos
Get
the language code of a linked resource
Complete Anchor Object Reference
Want To Be A Web Master?
If you want to be a Web Master, you will have to host your web site with an ISP (Internet Service Provider).
MaximumASP offers seven different configurations of dedicated servers to meet your Windows and .NET hosting needs.
Hosted on our multi-tiered Enterprise Class network, these servers provide the performance, security and reliability
you need to host your high end web sites and applications.
Visit MaximumASP
|