Introduction to VBScript - Page 2© Maxim Karetnikov
Page 2
Aug 12, 2000
into the HTML-document, includes HTML tags (<SCRIPT>) and has access to objects
(HTML elements). It comes as no surprise since VBScript is inherited from the
object-oriented language Visual Basic. This core of code will be the same in Visual Basic
excluding HTML tags and message window function (MsgBox() in Visual Basic instead of alert
"..." in VBScript.
| 6 reason to learn VB script |
- If you already know Visual Basic or Visual Basic for Applications,
VBScript will be very familiar. Even if you don't know Visual Basic, once you learn
VBScript, you're on your way to programming with the whole family of Visual Basic
languages.
- VBScript brings Web client scripting in most widespread browser
Microsoft Internet Explorer and Web server scripting in Microsoft Internet Information
Server.
- VBScript can be used without any restriction in the MS Windows based
intranet.
- You may license VBScript's source implementation at no charge for use
in your other Applications and Browsers.
- Microsoft provides binary implementations of VBScript for the Windows
API, the 16-bit Windows API, and the Macintosh. VBScript is integrated with World Wide Web
browsers.
- VBScript offers a larger variety of sequence, selection and iteration
constructs than JavaScript.
- You can mix both JavaScript and VBScript within the same HTML file,
so you're not forced to make a black-or-white decision.
|
Required background and software
The articles that will follow this one are intended for audience having some basic concept
of HTML and understanding what tags are and how to write and browse web page. If you
are using WYSIWYG editor (like MS FrontPage, Hot Meal, etc.) you should know how to read
document in HTML- format. The minimum requirements for editor is the plain text editor
(e.g., Notepad). You should use Internet Explorer version 3.0 or higher to view the
results.
Summary
VBScript is an easy and powerful scripting language that enables write interactive
client scripting and server scripting. The syntax of VBScript is very similar to Basic and
Visual Basic. VBScript is included as a part of HTML document along with HTML tags and
elements. VBScript is supported by Internet Explorer version 3.0 or higher and it can be
integrated with other World Wide Web browsers.
|