使用 document.write() 输出文本
<script>
document.write(“Hello World!”);
</script>
使用 document.write() 输出 HTML
<script>
document.write(“<h1>Hello World!</h1>”);
</script>
返回文档中锚的数目
<!DOCTYPE html>
<html>
<head>
<meta charset=”utf-8″>
<title>菜鸟教程(taoshaw.com)</title>
</head>
<body><a name=”html”>HTML 教程</a><br>
<a name=”css”>CSS 教程</a><br>
<a name=”xml”>XML 教程</a><br>
<a href=”/js/”>JavaScript 教程</a><p>锚的数量:
<script>
document.write(document.anchors.length);
</script></p></body>
</html>
June 27, 2012 Yay google is my world beater aided me to find this great internet site ! . &#H;2028ow can I be useful, of what service can I be There is something inside me, what can it be” by Vincent Van Gogh.