VBScript Tutorials - Herong's Tutorial Notes
Dr. Herong Yang, Version 5.00

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.

Dr. Herong Yang, updated in 2008
IE Web Browser Supporting VBScript