Free since 2005 · No login required
AT

Academic Tutorials

Learn at your own pace

site-mobile-top-banner · 320x50

Introduction to VB Script

Added 28 Jul 2008

VBScript, or Visual Basic Scripting Edition, is a powerful and easy-to-use alternative to JavaScript for programming on the web. This article will give you an overview of using VBScript on your web site.

Please take note that VBScript, and the sample scripts in this article, only function properly in Internet Explorer 3.0 or higher. Netscape Navigator does not support VBScript without the use of a third-party plugin.

If you have any Visual Basic experience, you will find VBScript very similar and as just simple to use. First of all, any scripts used on a web page must be surrounded in the

Now all you have to is create the script. As mentioned earlier, VBScript is very similar to Visual Basic. The individual procedures that you create are signified by the Sub and End Sub statements. The best way to illustrate this is by using an example. The following sample script displays a message dialog when you click on the button. The button's NAME attribute is set to 'DisplayMsg.' Click on this button for the demonstration: