Naming Applets

You can give an applet a name by using the NAME attribute of the APPLET element. This allows communication between different applets on the same web page.

<applet code="HelloWorldApplet" name="Applet1"
codebase="http://www.foo.bar.com/classes" width="200" height="200"
align="right" hspace="5" vspace="10"
alt="Hello World!">
Hello World!<P>
</applet>

Previous | Next | Top | Cafe au Lait

Copyright 1997-1999, 2002, 2003, 2005 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified July 1, 2005