W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
<html> <head> <link rel="stylesheet" type="text/css" id="style1" href="/example/hdom/try_dom_link.css" /> </head> <body> <script type="text/javascript"> x=document.getElementById("style1"); document.write("Id of link=" + x.id); </script> </body> </html>