Learn with kbdk :Adding VBScript Code to an HTML Page
Adding VBScript Code to an HTML Page You can use the SCRIPT element to add VBScript code to an HTML page. The <SCRIPT> Tag VBScript code is written within paired <SCRIPT> tags. For example, a procedure to test a delivery date might appear as follows: <SCRIPT LANGUAGE="VBScript"> <!-- document.write(“Hi”) --> </SCRIPT> Beginning and ending <SCRIPT> tags surround the code. The LANGUAGE attribute indicates the scripting language. You must specify the language because browsers can use other scripting languages. You can use SCRIPT blocks anywhere in an HTML page. You can put them in both the BODY and HEAD sections. However, you'll probably want to put all general-purpose scripting code in the HEAD section in order to keep all the code together. Keeping your code in the HEAD section ensures that all code is read and decoded before it's needed by any calls from within the BODY section.