代码示例:(标识:vbst_sub)
<html>

<head>
<script type="text/vbscript">
sub mySub()
  msgbox("这是一段子程序。")
end sub
</script>
</head>

<body>
<script type="text/vbscript">
call mySub()
</script>
<p>子程序不返回结果。</p>
</body>
</html>
运行结果: