'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

 About This Book

 Introduction of VBScript - Visual Basic Scripting Edition

 Variant Data Type, Subtypes, and Literals

 Arithmetic Operations

 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

 Built-in Functions

 Inspecting Variables Received in Procedures

 Error Handling Flag and the "Err" Object

 Regular Expression Pattern Match and Replacement

 scrrun.dll - Scripting Runtime DLL Library

 Creating Your Own Classes

IE Web Browser Supporting VBScript

 VBScript Support in IE Web Browsers

 Including VBScript Codes with HTML "script" Tags

 Including VBScript Codes as External Files

 DOM API - The "document" Object

 DOM API - The "window" Object

 Event Listeners and Objects

'vbscript:' Pseudo-URL Addresses

 IIS ASP Server Supporting VBScript

 WSH (Windows Script Host)

 References

 PDF Printing Version