Control Structures in VBScript

Conditional Statements If Statement If Age = 100 Then MsgBox "Congratulations!" An If statement first checks to see if the specified condition evaluates to True or False. If it evaluates to True, then it evaluates a set of statements. In the example above, the "Congratulations!" message box is only displayed if Age = 100, i.e. if Age is equal to 100. If Age = 100 Then MsgBox "Congratu...

Posted in VBScript at 2005-11-17T09:00:35Z.

Events in VBScript

A different event is triggered for each object on a Web page when certain things happen. e.g. the mouse is moved or clicked, or the page is loaded. There are many different events for various objects. Since VBScript is an event-driven language, everything operates by events. There are a few ways for specifying what happens in a script when an event occurs. The following explains the syntax of thre...

Posted in VBScript at 2005-11-17T09:17:26Z.

VBScript Properties

This section focuses on how to set properties for different objects and controls. This is perhaps one of the simplest tasks to do in VBScript. The general syntax for doing this is: <script> ... ObjectName.property = value ... </script> ObjectName is the name or identity of your object specified by the id attribute, and property is a specific property for the object. value is th...

Posted in VBScript at 2005-11-17T09:45:15Z.