The HTML <script> tag is used to insert VBScript in HTML.
VBScript is inserted into HTML, between standard <script> and </script> tags.
Use the type attribute in the <script> tag to define the scripting language "text/vbscript":
IE will interpret and execute the VBScript code between the <script> and
</script> tags.
| VBScript should not be used as a client-side scripting language! Here, we use VBScript in IE only for learning. |
When VBScript is used on a web server in an ASP page, the statement response.write() produces output.
When we use Internet Explorer for testing VBScript, we use document.write() to produce output:
In the example above, the browser will write "Hello World!" to the HTML page.
Your message has been sent to W3Schools.