<!DOCTYPE HTML> <html> <head> <script type="text/vbscript"> function myFunction() alert("Hello World!") end function </script> </head> <body onload="myFunction()"> <p>We usually use the head section for functions (to be sure that the functions are loaded before they are called).</p> </body> </html>