<html>
<head>
<script type="text/vbscript">
function myFunction()
myFunction = "蓝色"
end function
</script>
</head>
<body>
document.write("我喜欢的颜色是:" & myFunction())
<p>函数程序可返回结果。</p>
</body>
</html>