• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Introduction to VBScript

Like JavaScript, Microsoft's Visual Basic Scripting Edition (VBScript) enables you to embed commands into an HTML document. When a user of a compatible Web browser (for example, Internet Explorer or Netscape Navigator with the ScriptActive plug-in from Ncompass Labs) downloads your page, your VBScript commands are loaded by the Web browser along with the rest of the document and are run in response to any of a series of events. Again, like JavaScript, VBScript is an interpreted language; Internet Explorer interprets the VBScript commands when they are loaded and run. They do not first need to be compiled into executable form by the Web author who uses them.

VBScript is a fast and flexible subset of Microsoft's Visual Basic and Visual Basic for Applications languages and is designed to be easy to program in and quick in adding active content to HTML documents. The language elements are mainly ones that should be familiar to anyone who has programmed in just about any language: If...Then...Else blocks and Do, While, and For...Next loops, and a typical assortment of operators and built-in functions. The first half of this chapter takes you to the heart of the VBScript language and shows you examples of how to use it to add interaction and increased functionality to your Web pages. Then, in the second part of the chapter, you'll learn how to use VBScript on the server side to create applications using Active Server Pages.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint