Edit The Code:
See Result »
Try it Yourself - ©
w3big.com
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>本教程(w3big.com)</title> </head> <body> <a id="w3s" charset="ISO-8859-1" href="http://www.w3cschool.cc/">W3Cschool</a><br> <script> document.write("返回链接的charset: "); document.write(document.getElementById('w3s').charset); document.write("<br><br>"); </script> <a id="google" href="http://www.google.com/">Google</a><br> <script> document.getElementById('google').charset="utf-8"; document.write("设置链接的charset: "); document.write(document.getElementById('google').charset); </script> </body> </html>