HTML DOM charset Property
Complete Anchor Object Reference
Definition and Usage
The charset property sets or returns the character-set of the linked resource.
Syntax
anchorObject.charset=charset
|
Example
The following example sets the character-set of the linked resource:
<html>
<body>
<p>
<a id="myAnchor"
href="http://www.w3schools.com">W3Schools.com</a>
</p>
<script type="text/javascript">
x=document.getElementById("myAnchor");
x.charset="ISO-8859-1";
</script>
</body>
</html>
|
Try-It-Yourself Demos
Set
the character-set of a linked resource
Complete Anchor Object Reference
|