The affability of incorporating VBScript code into any HTML document is granted. However, VBScript in the HTML file is the preferable method of including it —
- Text in <head>...</head> part.
- Text in <body>...</body> part.
- Text in <body>...</body> and <head>...</head> sections.
- Text in the external file then include in <head>...</head> part.
When you start working more thoroughly with VBScript, there are cases where you reuse the same VBScript code over several pages on a site. In multiple HTML files, you do not have to keep the same code.A mechanism for saving VBScript in an external file is provided in the script tag and then added to the HTML file. You will need to write all of the VBScript source code into a single ".vbs"-extension text file to use VBScript from an external source file.