W3School TIY
脚 本 学 堂 www.jbxue.com
编辑您的代码:
<html> <head> <!-- base id="myBaseId" href="http://www.jbxue.com/htmldom/" / --> </head> <body> <p>Base id: <script type="text/javascript"> x=document.getElementsByTagName('base')[0]; document.write(x.id); </script></p> </body> </html>
查看结果: