在一段文本中插入变量的值

  1. <html>
  2. <body>
  3.  
  4. <script type="text/vbscript">
  5. dim name
  6. name="John Adams"
  7. document.write("My name is: " & name)
  8. </script>
  9.  
  10. </body>
  11. </html>