<html>

<head>
<script type="text/vbscript">
function myFunction()
 myFunction = "RED"
end function
</script>
</head>

<body>
<script type="text/vbscript">
document.write("My favorite color is " & myFunction())
</script>
</body>

</html>
Published in: VBScript
Download

Related snippets