Procedures in VBScript



Procedures are declared between the HEAD tags and then called appropriately from within the document.

<HEAD>

<SCRIPT LANGUAGE="VBScript">
<!--
Sub Info ()
	document.write "This is line one<BR>"
	document.write "... this is line two<BR>"
	document.write "... and this is line three<BR>"
End Sub
-->
</SCRIPT>

</HEAD>

<BODY>

<SCRIPT LANGUAGE="VBScript">
<!--
Call Info
-->
</SCRIPT>