- By Charles S. Kelly
- Jul 29, 1996
Remember back when java referred to coffee? For computer geeks, Sun Microsystems Inc.'s
Java now is the hottest programming language around. The rest of us geek-wannabes probably
won't ever master its full complexities, but many of us will learn a scripting language
functional. It's a client-side scripting technology, born as LiveScript at Netscape
versions of the browser--though not all those versions fully support Java. Go figure.
and later versions.
In addition, Explorer 3.0 will support the client-side scripting language Visual Basic
Script, a subset of Visual Basic for Applications. But Netscape Navigator, at least as of
this writing, doesn't support VBScript. Confused yet?
If you've been doing HTML, you should be able to pick up client-side scripting with
scripting and a lot of how-to books in your bookstore or soon to come. See Netscape's
World Wide Web site at http://www.netscape.com
public-domain scripts you can borrow. For example, check out http://www.gamelan.com. The concepts are the same,
whichever scripting language you use. I believe all browsers should support them both.
Here's a simple example of how to place a button on a Web page and have it pop up an
alert when clicked insert html code here.
To try it out, simply type into a text editor, save as testme.html, then open in
Netscape Navigator 2.0 or higher or Internet Explorer 3.0.
To put this script into your HTML, use the < /script > HTML tag; the language can
function is loaded into memory and declared in the header as the HTML page loads. It then
waits for the user to click on the normal HTML < form >< /form > tag.