<html>
<body>
<p>
<a id="myAnchor"
href="http://www.w3school.com.cn">W3School.com.cn</a>
</p>
<script type="text/javascript">
x=document.getElementById("myAnchor");
x.charset="ISO-8859-1";
document.write(x.charset);
</script>
</body>
</html>