VBScript Tutorials - Herong's Tutorial Examples - Version 5.20, by Dr. Herong Yang

IE Web Browser Supporting VBScript

This chapter provides introductions and tutorial examples on how IE Web browser provides support to VBScript code embedded in HTML documents. Topics include executing VBScript codes embedded in 'script' tags, including VBScript code through external files, DOM API 'document' and 'window' objects, browser event triggers and listeners.

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

Conclusions:

  • VBScript code included included in the "script" HTML tag in the "body" section will be executed when IE is rendering the Web page.
  • VBScript code included included in the "script" HTML tag in the "head" section usually defines procedures to be called later.
  • VBScript code included in as event handlers will be executed when user interacts with Web page or the IE browser window.
  • IE provides runtime objects to allow VBScript code to interface the Web document content and the IE browser window.
  • You can run a single VBScript statement in the address field with the "vbscript:..." pseudo URL.

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

 IIS ASP Server Supporting VBScript

 WSH (Windows Script Host)

 References

 Printable Copy - PDF Version

IE Web Browser Supporting VBScript - Updated in 2015, by Dr. Herong Yang