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

<script type="text/vbscript">
txt="Have a nice day!"
document.write(ucase(txt))
document.write("<br />")
document.write(lcase(txt))
</script>

</body>
</html>
运行结果: