循环输出HTML标题

  1. <html>
  2. <body>
  3.  
  4. <script type="text/vbscript">
  5. for i=1 to 6
  6. document.write("<h" & i & ">这是标题 " & i & "</h" & i & ">")
  7. next
  8. </script>
  9.  
  10. </body>
  11. </html>