This is a simple HTML page that demonstrates the use of
Microsoft® Visual Basic™ Scripting
Edition (VBScript) to control a Java™ applet.
If you look at the HTML source for this page, you will find the
VBScript code between the <script> and
</script> tags. These VBScript functions respond
to the user clicking the HTML buttons on this page.
Notes about the VBScript
document.TextDisplay refers to the applet. If you
change the id attribute in the <applet>
tag to JavaApplet, you will have to modify the reference
to the applet to document.JavaApplet.
The name attribute in the <input> tag gives a way to
refer to the buttons and the text area in VBScript.
The VBScript code calls two methods exposed by the applet:
setText and resetText. These are public methods of the
applet. They are declared at
the bottom of the Java source code file.