Basic Requirements
The basic requirements to add VBScript to a web page are as follows
<script language="VBScript">
<!--
statements
//-->
</script>
You use the HTML comment tags to hide the scripts from browsers that do not
support VBScript .
Scripts to be executed when they are called or when an event is triggered,
goes in the head section. When you place a script in the head section you
will ensure that the script is loaded before anyone can use it. Scripts to
be executed when the page loads, go in the body section. You can place as many
scripts as you desire in the <HEAD> and <BODY> sections
You can also add VBScript to events like the following
<input type="button" onEvent ="VBScript code would go
here">press here</input>
Here is a simple example script
<script language="VBScript">
document.write("a VBScript example")
</script>
which produces the following result
;