<!DOCTYPE HTML> <html> <head> <script type="text/vbscript"> Function myFunction() myFunction = "BLUE" End Function </script> </head> <body> <script type="text/vbscript"> document.write("My favorite color is " & myFunction()) </script> <p>A Function procedure can return a result.</p> </body> </html>