VBScript Tutorials - Herong's Tutorial Examples - v6.02, by Herong Yang
'vbscript:' Pseudo-URL Addresses
This section describes what is a 'vbscript:' pseudo-URL address and provides several interesting examples of 'vbscript:' URLs.
IE Web browser also supports "vbscript:" pseudo-URL addresses in the form of:
vbscript:statement
When a "vbscript:" pseudo-URL is given to a browser, it will start to evaluate the VBScript statement included in the URL. Here are some examples of "vbscript:" pseudo-URL addresses that you can try:
1. The following URL will cause the browser to display a text message in small dialog box.
vbscript:alert("Hello World!")
2. The following URL will cause the browser to display a new page with a text message.
vbscript:document.write("<html><body>Hello World!</body></html>")
Now it's your turn to write more "vbscript:" URL examples.
Table of Contents
Introduction of VBScript - Visual Basic Scripting Edition
Variant Data Type, Subtypes, and Literals
Numeric Comparison Operations and Logical Operations
String Operations - Concatenation and Comparison
Variable Declaration and Assignment Statement
Expression and Order of Operation Precedence
Statement Syntax and Statement Types
Array Data Type and Related Statements
Array References and Array Assignment Statements
Conditional Statements - "If ... Then" and "Select Case"
Loop Statements - "For", "While", and "Do"
"Function" and "Sub" Procedures
Inspecting Variables Received in Procedures
Error Handling Flag and the "Err" Object
Regular Expression Pattern Match and Replacement
scrrun.dll - Scripting Runtime DLL Library
►IE Web Browser Supporting VBScript
VBScript Support in IE Web Browsers
Including VBScript Code with HTML "script" Tags
Including VBScript Code as External Files
DOM API - The "document" Object
►'vbscript:' Pseudo-URL Addresses