May 13, 2021 VBScript
HTML is used to insert VBScript into HTML.
To insert VBScript into HTML, the script must be written between the standard labels.
In the label, use the type property to define the scripting language "text/vbscript":
The IE will interpret and execute the VBScript code between the .lt;script> and the .lt;/script>
VBScript should not be used as a client scripting language!
Here, we use IE-only VBScript for learning. |
When VBScript is used on an ASP page on a Web server, the statement response.write() produces output.
When we use Internet Explorer to test VBScript, we use document.write() to produce output:
In the example above, the browser outputs "Hello World!" to the HTML page.