从一段字符串的左侧或右侧返回指定数目的字符

  1. <html>
  2. <body>
  3.  
  4. <script type="text/vbscript">
  5. sometext="Welcome to our Web Site!!"
  6. document.write(Left(sometext,5))
  7. document.write("<br />")
  8. document.write(Right(sometext,5))
  9. </script>
  10.  
  11. </body>
  12. </html>