|
|
JavaScript Demos:
|
Discussion.
Microsoft supports two scripting languages for use
with HTML, both
JScript which
is its implementation of JavaScript, and
VBScript which
is very similar in use and syntax
When used in Internet Explorer, VBScript is directly comparable to JavaScript (not Java). Like JavaScript, VBScript is a pure interpreter that processes source code embedded directly in the HTML. VBScript code, like JavaScript, does not produce standalone applets but is used to add intelligence and interactivity to HTML documents. For the millions of programmers who already know Visual Basic, VBScript is a valuable alternative to JavaScript in activating web pages.Note that wording. Explorer supports VBScript while Netscape does not. Here is a simple example of a script to display a welcome message on a Web page, based on the time of day. First is a JScript version, then a VBScript version, both taken from the Microsoft samples area. They are listed sequentially below, but you can also click on each of the following links to bring them up in separate JScript and VBScript windows for side-by-side comparison. |
|