Where to Insert Scripts in an HTML page?
We have the liberty to insert VBScript code, in an HTML page, at any / all of the following locations:
' the following line declares a variable
' the following line assings a vaule to our variable hello
age = 20
' the following line prints the text
How to mark the end of a line in VBScript?
In VBScript a newline symbolizes the end of a line. However, sometimes our lines of code become so longer that we need to break some of them into multiple lines, to make them more readable. To ensure that such division does not affect the output, we use the underscore character (_) at the end of a line to indicate that the following line is also part of the current line.
test = 3 + 4_
The VBScript interpreter would now process the above three lines as a single line of code. For now just concentrate on the use of the (_), the rest of the things will be discussed in the coming lessons.
Next >>> Lesson No. 4: VBScript Variables