JAVASCRIPTCN.COM
源代码:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>JavaScript中文网(javascriptcn.com)</title> </head> <body> <p><a id="javascriptcn" type="text/html" href="http://www.javascriptcn.com">JavaScript中文网</a></p> <script> document.write("返回链接的type属性值:"); document.write(document.getElementById("javascriptcn").type); </script> </body> </html>
运行结果