HTML and CSS Reference
In-Depth Information
the software from the local cache, thereby reducing the inherent delays
of additional network activity to load the class.
The value of the archive attribute is a URL identifying the archive file.
The suffix of the archive filename may be either .zip or .jar . Archived
.zip files are in the familiar ZIP archive format. Archived .jar files are
in the Java archive format. Archived .jar files support compression and
advanced features such as digital signatures.
You can use the archive attribute with any <applet> tag, even if the class
referenced by the tag's code attribute does not exist in the archive. If
the class is not found in the archive, the browser simply attempts to
retrieve the class relative to the document URL or the codebase URL, if
specified. The code and codebase attributes
The code attribute is required with <applet> . Use code to specify the fi-
lename, not the URL, of the Java class to be executed by the browser.
Like <object> , make the search relative to another storage location by
using the codebase attribute, described earlier in section , or an
archive, as described earlier in section . The extension suffix
of the filename should be .class . If you don't include the suffix, some
browsers append .class automatically when searching for the applet.
Here is our clock example from earlier rewritten as an <applet> :
<applet code="clock.class" codebase="">
which the browser retrieves and displays from:
Search WWH ::

Custom Search