<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>JavaScript01</title>
<script language="javascript">
var count=0;
document.write("淘宝网观迎您。");
for(i=0;i<5;i++)
document.write("<h2>淘宝网欢迎您!</h2>");
</script>
</head>
<body>
<h1>BODY内容部分</h1>
</body>
</html>